Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming a .txt file

Status
Not open for further replies.

TheKing

Programmer
Joined
Feb 25, 2002
Messages
151
Location
US
Man I went through 10 pages of keyword search and couldn't find this prob. I was very supprised.

I have a record set lets say: Recordset_First

then inside Recordset_First's Do Loop I have another Recordset that uses values from first Recordset.

all of the recordsets work fine, what I am looking for is when Recordset_First does a .MoveNext I would like a new page started. Since this is opened prob. in NotePad is there a way to do this?
Also on a side note I would like it to print out in Landscape not Portorate.

Thanks TheKing
[pc3]
 

Problem is, plain ascii text files do not have the option of formatting text or page breaks, nor can you control the way a file prints from a text file. You will have to use a combination of the Printer object and possibly RTF files (if you want formatting) or use the printer object itself to control the page breaks by using Printer.NewPage.

Good Luck

 
You can put a form feed character into your text file. But it isn't going to look like a page break in notepad, just will cause a new page on the printer.

P.S. form feed is ASC(12)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top