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;
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;