>Rick,
>I thought CHR(12) was a page eject, but it doesn't do anything other than print a little square symbol. BTW I'm printing to an HP4000.
>I'm thinking since I gotta get this done tonight, to break it up into two strings and use the report summary for the second string with its built in page break.
The problem is you're sending output through the GDI, which converts your control sequences to graphical characters based on the current font. Either send it using ???, bypassing the GDI (but also starting a new print job), and take responsibility for all formatting for the entire output, opr create output to a file, parse the resultant file, insert your string at the right point, and then queue it to a print port bypassing the GDI by using CopyFile() - there's code in the FAQ for this.
You could also end the first string, then issue an EJECT PAGE, then send the remaining string.
In general, where I need detailed, hardware-specific behaviors, I don't want the GDI involved - I give up on hardware independence and Windows printer behavior, using a direct port driver to directly control the port and bypass all normal Windows GDI services.
>-Isaac
>
>>The page eject character is chr(12) (hex 0C). I don't know what the effect would be of simply sticking this in the middle of the detail band (for example, would page headers and page footers print, or not?) but it might be worth a try.
>>
>>>I have a report in which the detail band is a char string which I create programatically. It is made up of many paragraphs. I want to embed a page break. Does anyone know if this can be done?
>>>
>>>TIA,
>>>-Isaac