Ticket T1285792
Visible to All Users

Report Page Number combined Reports

created 6 days ago

Hello,

I have the following Problem:

I have a report with the Page number in the Bottom Margin using xrPageInfo. (Page 1 of n)
If I export a single report to PDF it works fine.

If I export multiple Reports to a single PDF-File n is the number of Pages in the entire PDF-Document, but the requirement is, that n should be the number of pages of a single report.

How it is:
Report1:
1 of 4
2 of 4
Report2:
3 of 4
4 of 4

how it should be:
Report1:
1 of 2
2 of 2
Report2:
1 of 2
2 of 2

C#
BaseReport firstReport = new BaseReport(protokolle.First()); firstReport.CreateDocument(); foreach (IBNProtokoll prot in protokolle.Skip(1)) { BaseReport rep = new BaseReport(prot); rep.CreateDocument(); firstReport.Pages.AddRange(rep.Pages); } // ... firstReport.ExportToPdf(saveDialog.FileName, new DevExpress.XtraPrinting.PdfExportOptions() { ExportEditingFieldsToAcroForms = true });

Thank you for your help!

Answers approved by DevExpress Support

created 6 days ago

Hello Jamin,

Thank you for such a detailed description.

I recommend that you set the PrintingSystemBase.ContinuousPageNumbering property to false to resolve the issue.

Regards,
Denis

    Comments (2)

      Thank you for your quick answer!
      That was exactly what I was looking for.

      D D
      Denis (DevExpress Support) 6 days ago

        You're welcome! Feel free to ask if you have more questions.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.