Using LPrint and _Printimage together - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Using LPrint and _Printimage together (/showthread.php?tid=2581) Pages:
1
2
|
Using LPrint and _Printimage together - Dimster - 04-06-2024 I'm struggling with sending some colored text to my printer. The wiki seems to suggest that this can be done using Lprint and _Printimage together but I'm getting error messages. Here is the simplest example of what I'm going - Code: (Select All) $Color:32 I'm also wondering if the Color Red call would go before the LPrint and not after the LPrint as I have it here? Thanks RE: Using LPrint and _Printimage together - SMcNeill - 04-06-2024 Try this very simple demo, and see if it helps explain the steps to do what you're trying to do: Code: (Select All)
RE: Using LPrint and _Printimage together - bplus - 04-06-2024 Wow for some reason I got it in my head that LPrint didn't even work in QB64. I've got to try it out. If I am printing a .bas source and the line is longer than 80 chars, is the next line the next line in program or the end of the line that didn't fit 80 char width? RE: Using LPrint and _Printimage together - SMcNeill - 04-06-2024 LPRINT just prints black text on whatever paper you have. It doesn't do images, page feeds, colors, or anything else. It's just for a quick print of black text on white paper (such as perhaps printing a text file). As for Wordwrap, I have no idea, as I haven't actually used LPRINT in ages due to it's limitations. I'd rather print to the screen, format it and make it look like I want -- images, colors, and all -- and then simply _PrintImage that screen off. RE: Using LPrint and _Printimage together - Dimster - 04-06-2024 I'm getting a error from my printer Steve. It won't print the document. Things seem to freeze on the computer screen while the printer is dealing with the code sent to it. Takes a little while before the error message and then the computer screen unfreezes. I can't seem to find what it's objecting to in the code. I thought LPrint and _Printimage had to be used together. I misread the wiki. Thanks for that code and remarks. I'm going to play with it some more and see what my Epson is having trouble with. RE: Using LPrint and _Printimage together - bplus - 04-06-2024 @Dimster the lprint for qB64 needs a uSB port, the epsons I remember use serial or parallel not usb. RE: Using LPrint and _Printimage together - Dimster - 04-06-2024 Hi b : the epson is the ET-3850 series, it is wireless and I use LPrint all the time with it. Just trying to add some color to some of the text info I'm sending to the printer. RE: Using LPrint and _Printimage together - bplus - 04-06-2024 @dimster ok have you tried steves demo yet? no need for lprint btw i've been creating forms and calendars, printing with fonts... without any need for lprint, it's just creating your page in an imagehandle that could be the screen or setup up in a _dest workarea for _printimage to use. RE: Using LPrint and _Printimage together - Dimster - 04-07-2024 Hi b - I'm still messing with Steve's example using _Printimage. Ya, I've have seen some of your work with printing fonts. I'm typically using Lprint for a quick dump of either a print out of the code on my screen or a quick dump of the results of a program run that appears on my screen. Using the search and change feature I can change every Print to an LPrint and back again. Saves me a lot of coding time to build in the code to print do the same thing without Lprint. In fact, and I may have mentioned this before a while ago, I'd love to have a L? option. RE: Using LPrint and _Printimage together - Dimster - 04-11-2024 As an update to the error I was receiving from my printer using Steve's code - SOLVED - turns out it was simple matter of commenting out that second "Sleep" in the code. Obviously the Epson took exception to Sleeping on the job. |