Real Software Forums
http://forums.realsoftware.com/

RSReport Page Break - How to add automatic page break
http://forums.realsoftware.com/viewtopic.php?f=20&t=42232
Page 1 of 1

Author:  wop [ Sat Jan 14, 2012 11:26 am ]
Post subject:  RSReport Page Break - How to add automatic page break

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

Author:  paulsondervan [ Sat Jan 14, 2012 2:33 pm ]
Post subject:  Re: RSReport Page Break - How to add automatic page break

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

Author:  wop [ Sat Jan 14, 2012 7:14 pm ]
Post subject:  Re: RSReport Page Break - How to add automatic page break

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....

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/