Set default value for report variables?
Many of my reports use category variables eg 'Colour1Value' and 'Colour2Value' that I set in Delphi before previewing the report using lines like
FrmSefReportByDept.frxReportFullSef.Variables := Frm_Options.GetGradeColour1;
FrmSefReportByDept.frxReportFullSef.Variables := Frm_Options.GetGradeColour2;
FrmSefReportByDept.frxReportFullSef.ShowReport(true);
However if I preview the report via Ctrl-P when I an designing it (instead of running my program) then of course I get an exception as those Delphi lines are not run and the variables have no value.
Is there a way to set a default value so I can see what the report looks like while designing it without having to compile and run my entire Delphi program every time?
FrmSefReportByDept.frxReportFullSef.Variables := Frm_Options.GetGradeColour1;
FrmSefReportByDept.frxReportFullSef.Variables := Frm_Options.GetGradeColour2;
FrmSefReportByDept.frxReportFullSef.ShowReport(true);
However if I preview the report via Ctrl-P when I an designing it (instead of running my program) then of course I get an exception as those Delphi lines are not run and the variables have no value.
Is there a way to set a default value so I can see what the report looks like while designing it without having to compile and run my entire Delphi program every time?
Comments