Tip #31 | Print Report ID on Reports

When an end user asks you to change a report, they often show a paper print of the report with the changes drawn with a pen or marker.

They often (or always) don’t know the report number and if you’re unlucky the report is printed in some automatic process and you’ll have to dig into the code to find the report ID.

This can be easily solved by printing the report number in the header or footer like this:

When doing this on Internal Reports there should be no problem.

Take care,

/Marq

PS: With thanks to Reinder van der Veen.

1 Comment

  1. SonGoten13 says:

    With this little peace of Code you get the ID dynamically:
    COPYSTR(CurrReport.OBJECTID(FALSE),STRPOS(CurrReport.OBJECTID(FALSE),’ ‘)+1)
    (Didn’t test it in RTC yet)

    Like

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.