| View previous topic :: View next topic |
| Author |
Message |
Scott Kent-Collins Guest
|
Posted: Sat Feb 19, 2005 10:46 am Post subject: VCL Formula Access Violation. |
|
|
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
|
Posted: Sun Feb 20, 2005 9:56 pm Post subject: Re: VCL Formula Access Violation. |
|
|
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 |
|
 |
|