Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 29th, 2008, 11:58 PM
Authorized User
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in getting the page break in RTF file


There are control tags in RTF file according to rtf specifications like \rtf1 \ansi etc.

There is page break control word \page (or \pagebb) to indicate the page break will occur.

I have made a RTF document in which there are three pages. Still I am not getting the page break control word i.e. \page or \pagebb.

How to check when the page break occurs.

Reply With Quote
  #2 (permalink)  
Old October 25th, 2009, 05:57 AM
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.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading an RTF File apoorva_ca C# 2005 1 January 10th, 2008 11:34 AM
How to save an web page content into RTF/text file khatu_jec ASP.NET 2.0 Professional 4 November 27th, 2007 04:52 AM
page break on group Problem moali72 Crystal Reports 1 August 16th, 2007 04:31 AM
Created RTF when try to open RTF, got an error not24 C# 0 March 31st, 2006 01:31 PM
Page breaks in rtf File bvprasad XSLT 0 January 19th, 2004 02:56 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.