Excel to PDF Orientation

I'm using Aspose.Cells to generate an Excel file from scratch. Everything works great. Now I'm trying to convert the Excel file to PDF. Everything is working great, but I cannot get the PDF to render as landscape. I'm setting the values of the Excel sheet for the sheet that I'm having issues with.

sheet1.PageSetup.PaperSize = PaperSizeType.PaperLetter;
sheet1.PageSetup.Orientation = PageOrientationType.Landscape;

When I convert this over, it's always Portrait in the PDF...

Thanks,
-Damien

Hi Damien,

Which version of Aspose.Cells for .NET you are using? Could you try the attached version (4.5.0.29) as I tested with it and it works fine.

If you still could not resolve it, kindly do post your template excel file, created pdf file, sample code here, we will check it soon.

Thank you.