Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show page numbers of main report in subreport?

Status
Not open for further replies.

talbotsk

Programmer
May 15, 2012
3
SK
Hi. I have many master reports and I would like to unify the page headers of all of them by creating special sub report (template) which should display page numbers, print date, name of company etc. I want to avoid to put all of these information in each master report everytime I create new master report.
1. Is it possible to show master report page numbers N of M in the subreport without creating shared variable in each master report?
2. Should I use different method for creating such template?
Thank you very much for the help.
B.
 
Templates in Crystal are more about giving a print style to an existing report, I've not found them useful, since the business doesn't want fancy report styles.

What I have done is create a 'Model Report', pick it up and use [Save As] each time I want a new report.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP [yinyang]
 
The term "template" means something specific in CR, so I assume you don't mean it in the sense of a template report that is applied using the template menu feature. I assume you just mean a report that you want to use over and over in multiple reports.

So to answer your question, page N of M should work fine in a subreport just as it does in the main report. Both share the same page numbering. The only time I have seen page numbering get confused in a report, is when there are lots of conditional sections, "keep together", and "can grow" objects in just the right combination. Even then it is very rare to have a problem.

So I don't see a problem with your approach. Did you try it and have a problem?

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
 
I resolved this with the templates. Thank you for your answers.
 
I created report which can be used as template later. Every report can be used as template. Then I created new report based on this "template" report. There is an option during creating new report to base it on previously created report. But this is not regular way for creating templates. I use free CR .NET Framework which doesn't support true templates. If you want use true templates, you have to install paid version of CR.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top