p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Other Programming > Other Programming Languages
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 30th, 2008, 12:58 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in getting the page break in RTF file

Hi

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.

Regards
Karan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 25th, 2009, 06:57 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 05: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



All times are GMT -4. The time now is 12:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc