View Single Post
  #2 (permalink)  
Old October 25th, 2009, 05:57 AM
jimbo jimbo is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Smile How to add a page break to an RTF document generated by code.

Hi
Not sure how you have laid out your code but the solution to adding page breaks is as follows:

MyFile.WriteLine("\pard \insrsid \page \par")

I use this within a data loop that writes so many lines of info , adds a page break, then writes field labels then the next lines of info, and so on until EOF.
Reply With Quote