New Blog Post: PDF/A and Metadata

Access the designer caption

edited August 2012 in End User
Dies ist eine mehrteilige Nachricht im MIME-Format.

Comments

  • edited August 2012

    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
This discussion has been closed.