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:





Regards,

Dilli babu


Loader.
Up arrow icon