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