Anyone know how to print to a printer from BMax?
Sending to the Printer
BlitzMax Forums/BlitzMax Programming/Sending to the Printer Is MSPaint.exe still the only way to print stuff?
I too would like to know. Maybe via custom .dll?
It should be perfectly possible to do it with the WinAPI (or Carbon/Xlib)
Cool...wish I had a clue how to do that lol.
What about GadgetPrint? (Or is it MaxGUI only :)
MaxGUI only but yes, the simplest way to print is to construct an html page, load it into an HTMLView and call GadgetPrint.
A PrintPixmap routine that did such a thing would be handy, or some specific code for each OS, windows printers aren't much fun to talk to that's for sure.
A PrintPixmap routine that did such a thing would be handy, or some specific code for each OS, windows printers aren't much fun to talk to that's for sure.
If we had access to the GDI in an easy package, it would be relatively easy to print.
What windows .dll handles the printer? I'll take a shot at this.
There are somethings best compiled in C, importing such functions into BlitzMax being pretty easy.
The following source (untested) is what i found after googling PRINTDLG GlobalLock and gives you an idea of the amount of code you are dealing with in regards to performing print jobs.
http://home.wanadoo.nl/hhaydn/Winatom/html/Prncdlg.htm
The following source (untested) is what i found after googling PRINTDLG GlobalLock and gives you an idea of the amount of code you are dealing with in regards to performing print jobs.
http://home.wanadoo.nl/hhaydn/Winatom/html/Prncdlg.htm
Why not support print on gadgets? In Visual Basic any form can be printed by calling it's print function (VB .NET. Not that I use such horror ;)
Mad props to anyone who finally quenches the thirst to print properly in blitz.
I'm *guessing* calling the print setup and print command would be similar to calling the color requester. /duck
I'm *guessing* calling the print setup and print command would be similar to calling the color requester. /duck
calling scanner would be nice too!
Kanati did a printer DLL for Blitz/3D/Plus. Not sure how much work would be involved in using it in Max.