Convert excel to pdf - page width problem

Hello,

I convert Excel file(with only 1 sheet) to PDf

the excel width is big therefore the pdf generates with 2 sections.(it looks like the excel is broken vertically)

how can i control the pdf width?

here is how I tried to control the pdf width:

.....

pdf.BindXML(xmlFile, Nothing)

'Save the pdf file.

pdf.Sections(0).PageInfo.PageHeight = 800

pdf.Sections(0).PageInfo.PageWidth = Aspose.Pdf.PageSize.A4Width

..

but this row just made everything to looks bigger

any help?

Shlomit

Hi Shlomit,

Thanks for considering Aspose.

Please share the resource Excel worksheet, so that we can test the issue at our end. We apologize for your inconvenience.