Active Reports 15 - Page Width Size Issue

Posted by: suhabavan.r on 26 December 2021, 8:51 pm EST

  • Posted 26 December 2021, 8:51 pm EST - Updated 30 September 2022, 6:19 am EST

    In the PageSettings class, the size of the page width is 8.5F, but when we generate the pdf the page width is coming as 9.75

    Below I have attached the screenshots please check and provide a solution?

  • Posted 2 January 2022, 8:19 pm EST

    Hello ,

    the following sample of code shows how to set 5x5 paper size:

                sectionReport.Document.Printer.PrinterName = "";
                sectionReport.Document.Printer.PaperSize = new System.Drawing.Printing.PaperSize("custom5x5in", 500, 500);
                sectionReport.PrintWidth = 5.0f;
                sectionReport.PageSettings.Margins.Left = 0f;
                sectionReport.PageSettings.Margins.Right = 0f;
    

    please do not forget that margins can affect the paper size.

    Thanks,

    Sergey Romanov.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels