wingwalker Posted September 24, 2003 Posted September 24, 2003 Is there a way to name a report within a script? What I mean is, when you run a script to find a list of salesman and print the list. I need to
Mike D. Posted September 24, 2003 Posted September 24, 2003 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
wingwalker Posted September 24, 2003 Author Posted September 24, 2003 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
Mike D. Posted September 24, 2003 Posted September 24, 2003 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
Recommended Posts
This topic is 8074 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 accountSign in
Already have an account? Sign in here.
Sign In Now