Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to stuff a page break in a string
Message
De
26/07/2000 22:59:55
 
 
À
26/07/2000 19:31:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00397368
Message ID:
00397425
Vues:
9
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform