Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Page Break in TXT file
Message
De
06/05/2007 11:05:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/05/2007 15:36:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01222595
Message ID:
01222867
Vues:
25
>I'm using the following code to create a text file. The user will be using Notepad to open the file. I want to force page breaks at certain points in the text document but I can't seem to get it to work. When I open the document in Notepad, I can see the little square character representing a FF but it has no effect on the printing.

There's a sequence I dug out from an old document with syntax for HP/PCL printers, so if your printer is using PCL, it may work.

Here goes:
lcFormFeed=chr(27)+"&l0H"
SET TEXTMERGE TO
SET TEXTMERGE ON NOSHOW
SET TEXTMERGE TO text.txt
\Some text
\<<lcFormFeed>>
\some more text
SET TEXTMERGE OFF SHOW
SET TEXTMERGE TO
This still may not work when printed through Windows spooler, because it may try to interpret it and who knows what it may do. You may need to use RawPrint, available here in downloads.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform