Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7734 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

What I've done the past is to create a global text field (gReportTitle) and use it as a title block in the report. Have the script set gReportTitle to the appropriate report name. Make sure that you set gReportTitle to " " at the end of the script.

HTH, Mike

Posted

Hi Mike,

Maybe you can give me a little more information. Where are you when you put the name into the gReportTitle?

And you said " Make sure that you set gReportTitle to " " at the end of the script". I'm not sure I know what that means.

Carl

Posted

To put the name into gReportTitle, go to your report layout and make sure you are in Form view, not List view otherwise you will not be able to enter the title into the global field. That is because the field is in the header and in list view you can't enter anything into a field in the header. So you would have something like the following in your report script.

Enter Browse Mode [ ]

Go to Layout[Report]

Print Setup[Restore, No Dialog]

Sort [Restore, No Dialog]

View as [View as Form]

Set Field["gReportTitle", "Report Title"]

Enter Preview Mode[Pause]

Print[No Dialog]

Set Field["gReportTitle", " "]

The last step clears out the value in gReportTitle after printing the report. That way you won't get an erroneous title in the report the next time.

Mike

This topic is 7734 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.