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 

VCL Formula Access Violation.

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





PostPosted: Sat Feb 19, 2005 10:46 am    Post subject: VCL Formula Access Violation. Reply with quote



I am using the Crystal Reports v10 VCL component (with C++ Builder 6) to
setup and generate my reports but when I try to set the formulas at run time
using the code samples supplied with the Crystal Reports help I get Access
Violation errors when accessing the Formula Properties. He is an example:


CrpeTest->ReportName = "My Report Name";
CrpeTest->FormulaByName("MyFormulaName")->Formula->Text = "My Formula
Value";
CrpeTest->Execute();

The code generates and ACCESSS VIOLATION when trying to set the formula...
has anyone else seen this and know how to fix it?

Thanks
Scott


Back to top
Scott Kent-Collins
Guest





PostPosted: Sun Feb 20, 2005 9:56 pm    Post subject: Re: VCL Formula Access Violation. Reply with quote



OK, some further testing shows that the DELPHI version of the code and
Crystal VCL component works fine. It is only the C++ Builder 6 version that
has problems. I think it is because the "UCrpe32.hpp" file that Crystal
supplied is incorrect/corrupted and does match the "UCrpe32.pas" file.

Is there and easy way to regenerate the HPP file based on a PAS file?

Thanks
Scott


"Scott Kent-Collins" <scott.kent-collins (AT) quest (DOT) com.au> wrote

Quote:
I am using the Crystal Reports v10 VCL component (with C++ Builder 6) to
setup and generate my reports but when I try to set the formulas at run
time using the code samples supplied with the Crystal Reports help I get
Access Violation errors when accessing the Formula Properties. He is an
example:


CrpeTest->ReportName = "My Report Name";
CrpeTest->FormulaByName("MyFormulaName")->Formula->Text = "My Formula
Value";
CrpeTest->Execute();

The code generates and ACCESSS VIOLATION when trying to set the formula...
has anyone else seen this and know how to fix it?

Thanks
Scott




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.