Why is Fast Report VCL in Delphi raising a stack overflow exception when editing a variable? -
i using delphi 5 , fast report 4 make report application. have defined variable "reporttitle" in myreport.f3 @ design time , assigned value @ runtime. why code raising estackoverflow exception?
here code sample
frxrprt1.loadfromfile('c:\myreport.fr3'); frxrprt1.variables['reporttitle'] := 'sales summary report'; frxrprt1.showreport;
use this:
frxrprt1.variables['reporttitle'] := '''sales summary report''';
the "variable" values treated full-fledged expressions; if want string, needs standard pascal constant, using single-tick quoting; , since you're doing pascal code, need quote quotes double-quoting.
you stack overflow because fast report's scripting engine trying make sense of whatever wrote , runs recursive problem.
Comments
Post a Comment