Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4695
Size unit
posted

Dear all,

What the size unit should be in page size when export to pdf?? I suppose to be mm, then I put 297mm X 210mm for A4 size, But Failed.

Report report = new Report();
                        ISection section = report.AddSection();
                        section.PageSize = new PageSize(PAGEWIDTH, PAGEHEIGHT);
                        section.PageMargins.Left = LEFTMARGIN;
                        section.PageMargins.Top = TOPMARGIN;

Parents
No Data
Reply
  • 469350
    Offline posted

    The Documents engine uses Points for the sizes.

    But I am pretty sure that there are static size classes for all of the standard page sizes like A4, so you don't have to figure out the numbers yourself.

    section.PageSize = PageSizes.A4;

     

Children
No Data