We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ExcelToPdfConverter doesn''t fit to one page

The attached Excel document is set to "Fit Sheet on One Page" and prints that way from Excel. When I convert it to a pdf using the ExcelToPdfConverter code below, the pdf has columns A-G on one page and H-K on another. Is there any way to get ExcelToPdfConverter to print it the same way Excel does? Also, is there any documentation available for ExcelToPdfConverter?



SampleDoc_54aca948.zip

3 Replies

SR Sridhar Syncfusion Team September 13, 2011 08:48 AM UTC

HI Jim,

Thank you very much for using Syncfusion products.

To set the excel document to fit into one sheet we need to set the ExcelToPDFConverterSettings LayoutOptions property to settings.LayoutOptions = LayoutOptions.FitSheetOnOnePage.

We have prepared the sample at our side for the same and attached here for your reference. Please try the attached sample at your side and let us know if these helps you.

Please let us know if you require any further clarifications.

Regards,
Sridhar.S



CS-ExcelTOPDF_8b9280c6.zip


AD Administrator Syncfusion Team September 14, 2011 07:34 PM UTC

Thank you, that worked perfectly!



SR Sridhar Syncfusion Team September 15, 2011 06:29 AM UTC

Hi Jim,

Thanks for the notification.

Please let me know if you require any further assistance on this and we are happy to help you out.

Thanks,
Sridhar.S


Loader.
Live Chat Icon For mobile
Up arrow icon