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 

Delphi 2005, QR 4 & custom preview form?

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





PostPosted: Mon Oct 10, 2005 8:25 am    Post subject: Delphi 2005, QR 4 & custom preview form? Reply with quote



I'm stuck with converting an old project to Delphi 2005. It uses QR with
custom preview form based on the example, which can be found on the Qusoft
website.
The example as well as my project works perfectly in Delphi 5 & QR3, but in
Delphi 2005 & QR4 it doesn't and gives an access violation. This access
violation is made by TQRPrinter.Create, as in the QR4 a mandatory
"parentrep" parameter is required.
But how to make it, when the project contains a lot of reports and the
custom preview form is the same for all these reports (and it's registeres
using RegisterPreviewClass)? I didn't find a solution how to pass the
required parent report name to the preview form...

Thanks in advance,

Igor


Back to top
Ottar Holstad
Guest





PostPosted: Mon Oct 31, 2005 3:53 pm    Post subject: Re: Delphi 2005, QR 4 & custom preview form? Reply with quote



Quote:
The example as well as my project works perfectly in Delphi 5 & QR3, but
in Delphi 2005 & QR4 it doesn't and gives an access violation. This access
violation is made by TQRPrinter.Create, as in the QR4 a mandatory
"parentrep" parameter is required.

I think the ParentRep parameter was introduced with QR 3.6.2, and as far as
I remember it's ok to just pass a nil



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.