1. Using Irv's Win32Lib Print Help Lib
- Posted by euphoric (admin) Aug 27, 2008
- 1016 views
Irv, got a question here about your printing lib (http://www.rapideuphoria.com/usingprinter.zip). How do you insert a manual page break?
2. Re: Using Irv's Win32Lib Print Help Lib
- Posted by murphy Aug 27, 2008
- 1002 views
Irv, got a question here about your printing lib (http://www.rapideuphoria.com/usingprinter.zip). How do you insert a manual page break?
Geez, we're talking ancient history here :)
Anyway, after looking over that code, it appears it wasn't intended to have manual page breaks, but was written to automatically insert breaks where needed, after taking into account font size, etc.
I suppose it would be possible to add a check in the function printPage() which would look for a formfeed character, and print a page footer, then feed to the next page and print a new header.
Basically just copy the routines in that function which already do those things. I don't have access to a Windows computer right now, so no way to test that idea.
3. Re: Using Irv's Win32Lib Print Help Lib
- Posted by euphoric (admin) Aug 27, 2008
- 1018 views
Irv, got a question here about your printing lib (http://www.rapideuphoria.com/usingprinter.zip). How do you insert a manual page break?
Geez, we're talking ancient history here :)
I know, right?!
I was able to do basically what you suggested. I inserted some text codes (like "NEXTPAGE") and just intercepted those and did what was necessary.
Thanks Irv!
4. Re: Using Irv's Win32Lib Print Help Lib
- Posted by ghaberek (admin) Aug 27, 2008
- 999 views
I was able to do basically what you suggested. I inserted some text codes (like "NEXTPAGE") and just intercepted those and did what was necessary.
A simpler way (if you're printing text files) would be to simply intercept a form feed, ASCII character 12. That is, after all, what it's for.
I used to use that years ago when I was building database and report generators in QBasic.
-Greg