Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

DocumentName

Hello,
I'm trying to set a variable to get the document name (report name).

Value := Report.PrinterSetup.DocumentName ; doesn;t show anything. Is there a system variable for this ?
Should I set it before running the report ? If so how is it assigned ?
Thanks
Andy

Comments

  • Hi Andy,

    In my testing this worked as expected in RAP and Delphi. Are you sure DocumentName contains a value? Try implementing this in Delphi and tracing into the OnCalc to be sure.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico, I;m not sure how to populate DocumentName. I was expecting it to be the template name.
  • Hello,

    I found that it is a system variable. It works fine now.
Sign In or Register to comment.