Try using Report.ReportDesigner.Caption, in my testing that works. I also recommend checking whether Report.PreviewForm is nil, prior to accessing Report.PreviewForm.Caption.
Perhaps you had extended your RB 9.03 RAP environment with some customer functions.
I installed RB 9.03 to test. I create a new report, add a Label and in the Calc workspace implement the Report.BeforePrint event
if Report.PreviewForm <> nil then Label1.Caption := report.previewform.Caption; if ( Label1.Caption = '') then Label1.Caption := Designer.Caption;
The above results in the following compile error:
Error: ReportBeforePrint, Line 5: Undeclared identifier.
- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
Try using Report.ReportDesigner.Caption, in my testing that works. I also
recommend checking whether Report.PreviewForm is nil, prior to accessing
Report.PreviewForm.Caption.
Perhaps you had extended your RB 9.03 RAP environment with some customer
functions.
I installed RB 9.03 to test. I create a new report, add a Label and in the
Calc workspace implement the Report.BeforePrint event
if Report.PreviewForm <> nil then
Label1.Caption := report.previewform.Caption;
if ( Label1.Caption = '') then
Label1.Caption := Designer.Caption;
The above results in the following compile error:
Error: ReportBeforePrint, Line 5: Undeclared identifier.
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com