Hi
I am trying to create a report on a custom papersize e.g. A5, A3 or even a custom size. I change the pagewidth & pageheight to the correct sizes and then save the report. When I open the pdf document its size is A4. Please find some sample code below.
Dim pdf1 As Pdf = New Pdf
pdf1.PageSetup.PageWidth = 500
pdf1.PageSetup.PageHeight = 500
pdf1.Save(System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\SamplePDF.pdf")
MsgBox("Saved")
OR
Dim pdf1 As Pdf = New Pdf
pdf1.PageSetup.PageWidth = PageSize.A5Width
pdf1.PageSetup.PageHeight = PageSize.A5Height
pdf1.Save(System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\SamplePDF.pdf")
MsgBox("Saved")
How would you suggest I do this
Thanks