 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Leon Coetsee Guest
|
Posted: Wed Apr 06, 2005 11:22 am Post subject: Rave BE, Deplhi 7 : Add multiple pages to report using code |
|
|
Hi,
I have a report, generated using code, using Delphi 7 and Rave.
Whenever I try to add a second page to the TRaveReport.PageList, the
app access violates. The second page object is instantiated (no nil
pointer). I have added a watch to see if the pagelist in the
TRaveReport is instantiated, and it's always nil. I have tried to
assign a TPageList (create), but that doesn't work either.
I have Rave Borland Edition (gotta love them budget cuts).
TIA,
Leon.
|
|
| Back to top |
|
 |
Leon Coetsee Guest
|
Posted: Fri Apr 08, 2005 2:19 pm Post subject: Re: Rave BE, Deplhi 7 : Add multiple pages to report using c |
|
|
Okay, so I sorted this out and posting for future ref.
What you have to do is create a blank project in Rave Designer, and
add a second page to it. then set up your page list in the designer
(on the Report1 component), and save this BLANK REPORT to disk. At
runtime, instead of creating a new report, load the saved blank report
up, and add everything by code (using FindRaveComponent to get
pointers/refs to the two pages). Then save this new report to a tmp
file (using save to file method call in project), load up the tmp file
a in a second project, and run the Report. Works like a charm.
Later,
Leon.
|
|
| Back to top |
|
 |
|
|
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 You cannot vote in polls in this forum
|
|