Writing to a text file - how to force a new page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a program that formats the data and prints it to a text file. I
know that a text file wont hold the form feed and recognize it but what is an
ideal way to get a new page? Would it simply be count the rows printed and
then advance that many when I want a new one? It would seem like there must
be a better way.

Cleako
 
You can actually write out the form feed |chr(10) to the text file and when
it sent for printing, it actually feed a new page, but that was how we the
DOS programmer did the old way.

If it is a fixed-width font, then probably you can count col x row character
of the page you want to print.

Boo K.M.
 
Boo said:
You can actually write out the form feed |chr(10) to the text file and when

Chr(10) is a LineFeed, not form feed. Form Feed is Chr(12).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top