Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Page Break in TXT file
Message
From
06/05/2007 11:05:06
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
04/05/2007 15:36:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01222595
Message ID:
01222867
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform