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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Break in a Text File

Status
Not open for further replies.

Trudye

Programmer
Sep 4, 2001
932
US
Hi Guys,
I have createe a Text file but I can't get it to recognize FF/char(13) which is a page break. I tried putting it on a line with text and a line without text.

Does anyone have any other suggestions

Thanks
Trudye
 
ASCII 13 is a carriage return. 12 is a page break.
 
Both of these options demonstrate on how it can be done in VBA:
Code:
Print #1,  "Before" & vbcrlf & "After"
Print #1,  "Before" & chr(13) & chr(10) & "After"

Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
oops sorry; i misinterpreted the requirement as new line; not new page; should read the question properly!

Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Thanks Guys we figured it out. The problem was we were using NotePad to print from and it was not recognizing the Pagebreak. We switched to Wordpad and it worked fine.

Thank you to everyone,
Trudye

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top