SQL Clone
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
jacksoncc
jacksoncc
SSC-Enthusiastic
SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)

Group: General Forum Members
Points: 123 Visits: 409
I don't believe you can include global variables, like page number in a table footer. SSRS does not apper to allow you to start page numbering based on anything like a group by grouping in the header or footer.
Ganesh Lohani
Ganesh Lohani
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1335 Visits: 1739
I had also similar problem before. the problem was that the form was expanding beyond the lay out of the report.
Go to project -> Report -> layout.
Make sure the form is trimmed to the boarder of the report lay out.
jharrison-622657
jharrison-622657
SSC Journeyman
SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)

Group: General Forum Members
Points: 90 Visits: 275
Try this

Expression for the page numbering...
="Page " & Code.GetPN(Not(ReportItems!tag.value Is Nothing),Globals!PageNumber)

Code for the page numbering...
Shared offset as integer
Public Function GetPN(reset As Boolean,pagenumber As Integer) as Integer
If reset
offset = pagenumber - 1
End If
Return pagenumber - offset
End Function
farrukh.malik
farrukh.malik
SSC Rookie
SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)

Group: General Forum Members
Points: 48 Visits: 4
Put a text box in Header/Footer or wherever you want and in the expression write this, =IIF(Globals!PageNumber = 1, "1", cStr(Globals!PageNumber)) it will show the page number and you can place another textbox before this as label saying Page:
Kalpesh Kanjibhai Patel
Kalpesh Kanjibhai Patel
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 Visits: 423
As i read your question i found that you have page size problem with SSRS view and PDF view. Please check Page size property for both or you can check it in Printer property(for which is default paper size of default printer).
farrukh.malik
farrukh.malik
SSC Rookie
SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)SSC Rookie (48 reputation)

Group: General Forum Members
Points: 48 Visits: 4
Go to report properties and set all margins to 0 and the PDF problem will be resolved.
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