Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Page numbers in SSRS while exporting to pdf file


Page numbers in SSRS while exporting to pdf file

Author
Message
Gunjan
Gunjan
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 309
Hi

I am designing the report in SSRS. In footer I have set the page out of (no. of pages). When I am viewing the report in report viewer it shows me for ex. 1 of 5 pages, 2 of 5 pages... etc...


When I exporting it to the pdf file the no. of pages increases and output is getting split into more pages. so now it shows me for ex. 1 of 7 pages, 2 of 7 pages.........etc.

But I want to keep the page numbers consistent with the viewer. so eventhough its divided in 7 pages. the page footer should show like 1 of 5 pages, 2 of 5 pages, 3 of 5 pages, etc..

is this possible??

Thanks

Thanks.

Gunjan.
nigel.c.west
nigel.c.west
SSC-Enthusiastic
SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)

Group: General Forum Members
Points: 170 Visits: 337
As far as I know this is not possible, the idea of the viewer is to show pages that have no length limit, they simply keep going until a ThrowPage is received.

When printing, or exporting to PDF, the expected output is by page size, and therefore you will get new pages every time (for example) the limit of an A4 piece of paper is reached.

To try to accomplish what you want, you would need to find a way of always having only an A4 page worth of data in a certain group, and throwing a page at the start or end of that group. This would become unworkable pretty wuickly and I wouldn't recommend it as an approach.

Nigel West.

Nigel West
UK
Gunjan
Gunjan
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 309
Hi,

Thanks for the reply.

I have achieved that by storing the result into temp table and then assigning that field value to the attribute/control on the report which will work as a page number like =Field!SrNo.Value & ' of ' & Field!SrNo.Value

But the new requirement is if viewer shows 5 pages and while exporting to PDF if the page gets increased then for ex. for 3rd record it splits the page in to two. so the idea is to show like 1 of 2 next page 2 of 2 ; even though the pdf document has 7 or any number of pages but for individual record if the page gets split then it should work as per example I mentioned.

Is there any trick or provision in SSRS?

Thanks.

Gunjan.
nigel.c.west
nigel.c.west
SSC-Enthusiastic
SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)SSC-Enthusiastic (170 reputation)

Group: General Forum Members
Points: 170 Visits: 337
Nothing I can think of I'm afraid, sorry!

Nigel West
UK
Gunjan
Gunjan
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 309
Smile

No problem..

Thanks....

Thanks.

Gunjan.
jacksoncc
jacksoncc
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 409
I'm sure you have moved on beyond this problem by now. However my users often report this phenomenon when the body dimensions extend (are wider than) the report layout dimenions. If your report layout is 8 1/2 long by 11 wide, with a one inch margin on the left & right, your report body can be no wider than 9 inches. When you export to pdf, the pages seem to grow beyond the preview mode. If you look at the number of pages in the print-preview mode you should see the real number of pages that will be printed or converted to pdf.
CJ
timabrown
timabrown
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 0
The PDF Writer called PDFEdit995 has a function to number pages in a file.
bhuvana.konduru
bhuvana.konduru
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 5
Please provide me the necessary steps to add page n of m concept in sql rs reports.
jacksoncc
jacksoncc
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 409
Here's the expression you can add to a text box placed in the header or footer:
="Page " & Globals!PageNumber & " of " & Globals!TotalPages
maheswari.panigrahi
maheswari.panigrahi
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 0
hi..

can u please tell me how to get the total no of pages present in a group in a Report Viewer's Footer.

I have a report with group by Village_code and i have 2 villages .first village have 25 no of pages and 2nd village have 7 pages.

I need my OUTPUT SHOULD BE..

PAGE 1: PAGE 1 OF 25
PAGE 2: PAGE 2 OF 25
PAGE 3: PAGE 3 OF 25..ETC FOR VILLAGE 1

AND FOR VILLAGE 2:

PAGE 1: PAGE 1 OF 7
PAGE 2: PAGE 2 OF 7 ETC..

Please help me how to do it........
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search