Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Apr 26, 2017 6:37 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: RSReport Page Break - How to add automatic page break
PostPosted: Sat Jan 14, 2012 11:26 am 
Offline

Joined: Sun Jan 15, 2006 12:16 pm
Posts: 18
Location: Frankfurt, Germany
Hi all,

I've been struggling with this for the past few days and I am simply not able to figure out how a Page Break can be added to a report in RSReport. I estimated that if I add for instance a "oElement_Text = new CRSRText" and set it to wrap_lines automatically then this would result in a page break if the text is long enough. This does not seem to be the case.

Does anybody have a solution for this ? Or a hint ?
The purpose is to generate an invoice_report which contains text and fields from a recordset.

Thanks in advance,

wop


Top
 Profile  
 
 Post subject: Re: RSReport Page Break - How to add automatic page break
PostPosted: Sat Jan 14, 2012 2:33 pm 
Offline
User avatar

Joined: Fri Jul 09, 2010 7:16 am
Posts: 103
Location: Den Haag, Netherlands
The documentation says:
Page_AddNew()
Fügt dem Report eine neue Seite hinzu und aktualisiert die Anzeige der Seitenzahlen im Pagswitch des
Previewcontainers, wenn beim Erzeugen des Reports ein Previewcontainer übergeben wurde.

Translation
Page_AddNew()
Adds a new page the report and updates the display of page numbers in the Pagswitch of the
Previewcontainer, when the creation of the report is handed over to the preview container.

Example:
/ / Add new page
me.Page_AddNew

_________________
MacBook Pro (late 2008), OSX Mountain Lion 10.8.2, Real Studio 2012r2


Top
 Profile  
 
 Post subject: Re: RSReport Page Break - How to add automatic page break
PostPosted: Sat Jan 14, 2012 7:14 pm 
Offline

Joined: Sun Jan 15, 2006 12:16 pm
Posts: 18
Location: Frankfurt, Germany
paulsondervan wrote:
The documentation says:
Page_AddNew()
Fügt dem Report eine neue Seite hinzu und aktualisiert die Anzeige der Seitenzahlen im Pagswitch des
Previewcontainers, wenn beim Erzeugen des Reports ein Previewcontainer übergeben wurde.



Maybe I was somehow unclear...
I wanted the new page to be automatically added if the length of the text exceeds the page height. That's what I am not able to figure out. I can surely add new pages but somehow figuring out the length of the text and comparing that to the page height seems not to be working.

It's working perfectly with e.g. a table (like in the example provided by bob keeney) but as soon as a textblock is added it is not working. For some reason I am not able to get a page break if the text is longer than one page.

I'm gonna' trash what I have so far and start all over again with the report....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group