print file - 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: Utilities (https://qb64phoenix.com/forum/forumdisplay.php?fid=8) +---- Thread: print file (/showthread.php?tid=2582) Pages:
1
2
|
print file - bplus - 04-06-2024 i just tested lprint for making hardcopies of some code files. not bad i added line numbers so you can see which lines are carry over from previous lines and which are the start of new program line i tested the code below first for quick half page copy then I did an 842 line program [editor] i am working on and it handled multiple pages without skipping a beat in about 16 pages. maybe you will find it handy or handy to mod for your purposes Code: (Select All) _Title "print file" 'b+ 2024-04-06 RE: print file - Dimster - 04-07-2024 Handy little utility - thanks b for same. RE: print file - SMcNeill - 04-07-2024 Do you really need something so complicated? Code: (Select All)
What's wrong with something as simple as the above? Read a line, print a line? RE: print file - bplus - 04-07-2024 Quote:Do you really need something so complicated?no i guess not Code: (Select All)
Quote:What's wrong with something as simple as the above? Read a line, print a line?nothing in my defense, i have a copy of the file in an array to process further and your code doesn't RE: print file - Dimster - 04-08-2024 What I like about all the code using LPrint is the variety of the way to use it. If you go to the wiki there are no examples of what you can do with it or even best practice. One of the things which is not mentioned, but thanks to Steve, is how to use LPrint with color text. RE: print file - bplus - 04-08-2024 Quote:but thanks to Steve, is how to use LPrint with color text. ? but, but, but... didn't he tell me that lprint only does black ink on white paper? let me see if i can find quote... i know you can definitely do color printing even images with _printimage here from your @dimster post in help board on same subject: TAS Quote: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). RE: print file - Dimster - 04-08-2024 There's another Topic I started " Using LPrint and _Printimage together" which Steve demonstrated how to send color text. RE: print file - bplus - 04-08-2024 (04-08-2024, 07:58 PM)Dimster Wrote: There's another Topic I started " Using LPrint and _Printimage together" which Steve demonstrated how to send color text. yeah same place i quoted from, he used _printimage not lprint RE: print file - Dimster - 04-08-2024 My apologies for the confusion, that sentence should have read - how to use _Printimage for color text and not LPrint. I have LPrint on my mind because it is the LPrint topic in the wiki where _Printimage is raised. RE: print file - SMcNeill - 04-08-2024 Personally, I find _PrintImage to be even easier to use than LPRINT. The idea for _PrintImage is really simple: 1) Set up a screen to mimic the size/color of a piece of paper. (white background, 8.5 x 11 scaled size) 2) Print whatever you want, in whatever colors, images, backgrounds you, want to that screen. 3) When the screen looks like you want it to, then just _PrintImage that screen to the printer. That's all there is to it. |