Victor Charles
asked on
Help with including page numbers in a report
Hello,
I am using MS Report with VS2008, the data is in table format. How do <i include page numbers at the page footer or table footer?
Victor
I am using MS Report with VS2008, the data is in table format. How do <i include page numbers at the page footer or table footer?
Victor
ASKER
Thanks. After I drag the textbox to the footer section where do´I enter
="Page " & Globals!PageNumber & " of " & Globals!TotalPages.ToStrin g?
="Page " & Globals!PageNumber & " of " & Globals!TotalPages.ToStrin
Just create a textbox like you have done, right-click on it, click expressions and there.
ASKER
I went to Report properties and inlcuded the code above but I got the following error message:
Error 2 There is an error on line 0 of custom code: [BC30205] End of statement expected.
How do I fix this error?
Error 2 There is an error on line 0 of custom code: [BC30205] End of statement expected.
How do I fix this error?
which code are you using?
The custom code or the expression?
If the expression, the more appropriate location is right-click on your textbox, properties, there where it says repeat on every page.
The custom code or the expression?
If the expression, the more appropriate location is right-click on your textbox, properties, there where it says repeat on every page.
ASKER
'I tried both, will try your last suggestion and get back to you later. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It worked. Thanks.
Open in new window
Or you can use functions:
Go to "Report" -> "Report Properties" -> "Code"
In the Custom Code section, enter the following:
Open in new window
To display the page number and total pages in a textbox located in the footer simply enter this for the value:
Open in new window