Crystal report displays page number as 1 of 1+ - reporting-services

I am using crystal report 8.5 with VB6. So in some of my reports the page number is displayed as 1 of 1+ when i click on next the page number becomes 2 of 2+ and so on. When i reach last page say 8th page it becomes 8 of 8. I dont know which setting causes this to come like this. I want page number to be displayed properly as 1 of 8 and so on. So please help me on this.
Below is a screenshot of that error

I can't tell you exactly why the Report Viewer does that, but to get rid of this behavior just add from 'Special Fields' in the Field Explorer the field 'Page N of M' anywhere in your report and change its suppress property to true. Adding this field to your report will display the number of all pages in your toolbar correctly.

I only found reason for the error and solution to it.
http://scn.sap.com/message/14609181#14609181
The rpt which does not displays page number properly(i.e displayed 1 of 1+ in viewer) had page number field used in it. But there was no field which triggers total page count. So i was getting 1 of 1+.When i reach last page it gets the page count so when i click previous page it updates page number properly in viewer.
So it can be solved by using TotalPageCount some where in the rpt file so that it updates it at the beginning it self when displaying first page.

Related

problems printing a tabbed report in Access 2010

I'm hoping this isn't a bug in Access but my research so far shows me that tabbed forms and reports are somewhat troublesome --
I've got a big report to print with more than 500 lines, 6 text boxes on each line; since Access reports are limited to 22" length (2 8.5 X 11 pages), I figured tabbed is the way to go.
Because there are, all told, 56 text boxes to go on each tab, I first created the model for my report as a regular (not tabbed) report. Once I had it all working correctly (and printing correctly), I copied it in its entire into a 5-tab report.
As I said, it prints just fine in the simple report BUT:
Print Preview on the tabbed report puts a blank page or a page with a single vertical line on the left margin (it actually looks like it might be part of the frame of the tabbed page) or a page with a single 1/2" horizontal line at the left end of the top margin (which looks like it might be the page break but it's still there after I delete all page breaks) between every page. So that in print preview my 10 pages wind up as 20 pages, 10 of the blankish.
It's worse when I try to actually print as I get only 6 pages, 5 of them blank.
Am I doing something wrong or do tabbed reports simply not print in Access? Or at least in Access 2010?
Thanks in advance.

Access report - Preview selected pages

If one condition I've specified returns true I want to open my report in preview mode and the report should show all the pages minus the last one. i.e. if the total number of pages is 10, preview only pages from 1 to 9.
I was thing about tweaking this code, it works however it goes directly to the printer dialog box and bypasses the preview step completely.
Do you know how I can specify which pages to show in preview mode?

SSRS Report Rendering Error: number of children on page and saved number of children for the page

I came across this weird issue recently while creating a report. The report would generate fine at first then as I clicked through the pages in the non-print layout the report would fail seemingly randomly around the 5th or 6th page. The error generated was, reportrendering:mismatch between the number of children on page and the saved number of children for the page. The report would not fail while clicking through the print layout but I could see the data not being included in the report past the point the report would fail in the other layout. Is this a common error in SSRS? I could not find any references to it while I was searching for a solution.
The problem with my report was in the tablix properties. I was using rectangles to group my tablix's into sections. It seems that since I had set page breaks after some of my tablix's that were contained within the rectangles it was causing this error. Once I fixed the tablix properties to not have page breaks and only applied page breaks after the rectangles the problem was gone. Just posting this in case anyone else encounters that error message as well. I did not see any other help listed for it.

SSRS Tablix Group Reset Page Number and Page Name not working when Exported to Word

I have a SSRS (.rdl) report with a tablix whose details group is set to put a page break between group items, reset the page number and set the page name (as per http://blogs.msdn.com/b/robertbruckner/archive/2010/04/25/report-design-reset-page-number-on-group.aspx).
This works correctly when rendered to HTML or as a PDF.
When rendered to Word the page numbers do not reset and the page name never changes (the page name is always the value set on the first page). The page breaks work as expected.
I have read (at https://msdn.microsoft.com/en-us/library/dd283105.aspx#ReportHeadersFooters) that complex expressions must be converted into runs of simple expressions in order to display correctly when exporting to Word. I have done this but the problem persists.
Is there any way to make the tablix group reset page number and page name functionality work when exporting to Word?
If not is there a way of achieving the same effect when exporting a report to Word from SSRS?
This is an older question but recently ran into this issue myself so it might help someone else.
There are a lot of examples out there that use casting in the examples for the page number display (CStr or ToString()). Whenever I invoked those methods, the counts would be off when exporting to Word (either doc or docx).
The only way I could get it to work is with three separate text boxes in the footer with these expressions:
=Globals!PageNumber
"of"
=Globals!TotalPages
Avoid the use of those other approaches. Three separate text boxes was the only way I could get this to work.

SSRS not rendering all page breaks in PDF export

I have a report is ssrs, it consist of a main report which has a header containing the page number and 2 sub reports (report page 1 and report page 2) within a tablix. Report page one comes first, then report page 2 displays on the next page after the end of report page 1. The subreports can be anywhere from 1-3 pages. The page numbering is reset between each set of report page 1 and 2 (so if page 1 is 3 pages and page 2 is 2 pages, it goes from page 1-5, then resets). These are called for each record (with grouping) from the main reports' query. The report is around 1000 pages total. It renders perfectly on screen, but when I try to export to PDF, it will sometimes (like 1 time in the 1000 pages) display part of report page 2 on a page (as expected, the page number matches with it), then it will start printing report page 1 of the next group on the same page.
Here is the layout of the main report:
Here is the document outline for better understanding:
And here is the page that is wrong...
This is what it should look like (the last page of sub-report page 2 even has just the total record like the broken one!
I have tried everything I can think of. I have tried (i think) every combination of page breaks on the rectangles and groups, I have tried making a tablix with 2 rows using the same group and again tried every combination of page breaks. I have tried changing the number of records on a page. I have tried changing the consume whitespace option on both sub and main reports. I have tried adding both calculated and random amounts of white space. I have recreated the report from scratch a couple times. I'm sure there's more, but it would be like going through a full feature list of SSRS... Basically, I tried everything I could think of, then everything suggested in the links on the first page of about 10 different google searches. I just have no idea what is going on with this, any help would be greatly appreciated!
Let me know if you need any more info, screenshots, or whatever and I will try to provide. It may be highly "redacted", but I will provide anything I can.
Thanks, Kevin
Try check the setting "Between each instance of a group" in group properties of tablix.
Try checking your XML for empty TablixRows (which will not show up in the Document Outline). I found with my report that empty tablix rows screw up page breaks in subsequent rows / sub reports when exported to PDF. Where possible hide the TablixRows or insert and empty text box.
This appears to be a bug with SSRS when editing the XML by hand. The Visual Studio GUI seems to not let you delete the last element in a row - perhaps this is a work around. An error or schema validation message would have been nice for us hand coders!
Hope this helps.