Calling a USB printer from BlitzMax

BlitzMax Forums/BlitzMax Programming/Calling a USB printer from BlitzMax

Gary Leeds(Posted 2010) [#1]
I am writing my first project using BlitzMax and have the requirement to output to a USB printer. The printers will only be the one type and drivers will be intalled by windows, but how do I get BlitzMax to communicate with it? I cannot see any printer commands.

What I would like to do is design a bitmap which I then draw offscreen adding text etc and then send that to the printer rather than just plain text

Is this possible?

Many thanks
Gary


explosive(Posted 2010) [#2]
Hi Gary,

have a look here: http://www.radioactivegamer.com/Blitz/ . It's a dll from Kanati who provides us for years now with really cool stuff. I once used that lib as well when developing under windows and I will use it again when I have to. Some more information: http://www.blitzbasic.com/Community/posts.php?topic=30384

If you're working under UNIX, you can simply use "lp". You then just have to convert your docs to PostScript and send the path to "lp". PostScript isn't really hard to learn. I use that as well and I'm very happy with it.

Greetings Simon


xlsior(Posted 2010) [#3]
The toolbox one with Blitzmax code doesn't work with the later Blitzmax versions, IIRC... Don't know about the DLL, but it has a VB6 dependency.


Gary Leeds(Posted 2010) [#4]
many thanks for the quick replies. I will have a look at them now


Gary Leeds(Posted 2014) [#5]
...


Henri(Posted 2014) [#6]
Hello,

if you use MaxGUI, there is a GadgetPrint() function for textarea as well. also wxMax holds printing functions with even more variaty. If you are developing just for Windows then MSDN-library provides a solution.

-Henri