BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rave BE, Deplhi 7 : Add multiple pages to report using code

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Leon Coetsee
Guest





PostPosted: Wed Apr 06, 2005 11:22 am    Post subject: Rave BE, Deplhi 7 : Add multiple pages to report using code Reply with quote



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





PostPosted: Fri Apr 08, 2005 2:19 pm    Post subject: Re: Rave BE, Deplhi 7 : Add multiple pages to report using c Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.