C# -- Microsoft Report Viewer --> incorrect page#s

finance_teacher
finance_teacher used Ask the Experts™
on
How can I get my below "Print.cs" to show the correct pages numbers ?
--------------------------------------------------------------------------------------------
        private void ProductVisionMain_Print_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'DataSet_GMLLM.FormulaUpdate' table. You can move, or remove it, as needed.
            this.FormulaUpdateTableAdapter.Fill(this.DataSet_GMLLM.FormulaUpdate, GLOBAL_vIsNull, GLOBAL_FMCode, GLOBAL_vEntityName);
            this.reportViewer1.RefreshReport();
        }
Example
1.      users run report
2.      report displays "Page #1 of 66" (attached 1.jpg)
3.      users browse report and find out that they want to print "Page #4
4.      user click "Print" ICON
5.      selects "Page #4" (attached 2.jpg)
6.      "Page #2 of 139" prints since report is in LANDSCAPE mode
7.      open Report.rdlc
8.      change report "Layout" back to PORTRAIT mode
o      Page Width = 8.5in
o      Page Height = 11in
9.      retest
10.      report displays "Page #1 of 66" (attached 1.jpg)
11.      users browse report and find out that they want to print "Page #4
12.      user click "Print" ICON
13.      selects "Page #4" (attached 2.jpg)
14.      "Page #3 of 95" prints since report is in PORTRAIT mode
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial