1. Using Irv's Win32Lib Print Help Lib

Irv, got a question here about your printing lib (http://www.rapideuphoria.com/usingprinter.zip). How do you insert a manual page break?

new topic     » topic index » view message » categorize

2. Re: Using Irv's Win32Lib Print Help Lib

euphoric said...

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Using Irv's Win32Lib Print Help Lib

murphy said...
euphoric said...

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?! grin

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!

new topic     » goto parent     » topic index » view message » categorize

4. Re: Using Irv's Win32Lib Print Help Lib

euphoric said...

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. blink

I used to use that years ago when I was building database and report generators in QBasic. smile

-Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu