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

XlsIO excel document paper size in inches or pixels

Good day!

We have used sheet.PageSetup.PaperSize() method to got the PaperSize type. How can I get the paper size (width and height) in pixels or inches?

1 Reply

DB Dilli Babu Nandha Gopal Syncfusion Team December 21, 2015 12:24 PM UTC

Hi Syschev

In XlsIO, the paper size of worksheet is maintained by ExcelPaperSize enumeration. There is no function to obtain the pixel or inches value of paper size for a worksheet. You can write a custom function by getting the size information from MS Excel as shown below.

Screen shot:


Dilli babu

Live Chat Icon For mobile
Up arrow icon