Get the total number of pages in a report using Report Viewer - crystal-reports

How do I get total number pages in a report using Report Viewer?

Is this what you are using?
=Globals!TotalPages
be aware that this only works in the header or footer of the report.
Also, in reporting services 2008 the report may be rendered a page at a time on demand as each page is viewed, and the TotalPages number may not be accurate until the entire report has been viewed/rendered.

Related

How to set the default print preview page based on a date in Crystal Report, when the report is launched?

I have been working on this for a while and can't figure out how to get it resolved. I have a crystal report in calendar format. The report always has 12 pages of a year, with each page for 1 month.
What I would like to accomplish: When the report is opened and the default first page is based on the current date's month. E.g. When today's date is 02/13/2023, the default page showing is February's page. When today's date is 04/05/2023, the default page showing is April's page.
Crystal report always shows the first page as default page, meaning, always starts from January's page. This is not user-friendly for users.
Thanks in advance.
What are you using to preview the report: Crystal Report Designer or a Crystal Runtime viewer?
Would you be open to a solution that provides the data via a web page? At least one of the 3rd-party Crystal Reports automation/scheduling tools listed on Ken Hamady's web site allows you to take schedule data in a Crystal report and convert it to an interactive web schedule with options for day/week/workweek/monthl views (that automatically default to the current date).

Adding multiple sections in Crystal Reports without using subreports

I'm making a check report and need the check stub to show up twice on each page. I think i can do this by showing the same group header, details and footer on the same page twice. The issue I'm having is that the table I'm connecting too only stores the data for a brief moment while the report is being accessed which seems to bar me from using subreports. The subreports just show up blank. Is there a way to show the same section twice without using a subreport?

Reset page number after is not working in Crystal reports 2008

I have a main report which contains two sub-reports. These sub-reports are placed in report-footer A and report-footer B. Now I want to reset page numbering after first sub-report.
In the section expert I have checked the "reset page number after" option. But still I have continuous page numbering for both the sub-reports combined.
Please help.
Thanks guys.. problem is solved :)
Subreport in report footer A had a 'new page before' checked in its report footer section. Once this tick was removed, page number problem got resolved.
Though m not getting how the subreports new page after affected page numbering in main report.

how to print grand total on last page in crystalreport?

the grand total has to be print on last page
if i have 2 pages in crystal report then the grand should be print on 2 nd page not on 1st page
how should i do this please help me out
In the Crystal Reports designer you have several places by default (report header, page header...).
To set something to appear in the last page you should use "report footer".
Crystal report tutorial
This might help. Just have a look
If you got some time look at the videos in here http://www.vtc.com/products/Crystal-Reports-XI-Beginner-Tutorials.htm

How to use jasper reports to print something only on the first page?

How to use jasper reports to print something only on the first page. I am using jasper reports for printing invoices and only on the 1st page I need to print the Remit Payment To section with the address following it. Customer address is also present there. The way it is currently designed is that this goes into pageFooter section and we use printWhenExpression(PAGE_NUMBER = 1) so that this only gets printed on the 1st page of the invoice. But the downside of this approach is that the jasper engine reserves the size equivalent of the page footer on all the other pages (1..n) of the invoice. So we are able to use only about 2/3 rd of all pages. Remaining 1/3rd page which is for page footer is blank for all pages except the 1st page. This increases the number of pages. Any ideas for fixing this issue?
Use "Print When Expression" of the Page Footer itself, not the field.