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.
Unfortunately, activation email could not send to your email. Please try again.

XlsIO excel document paper size in inches or pixels

Thread ID:





121494 Dec 20,2015 01:09 PM Dec 21,2015 07:24 AM WPF 1
Tags: XlsIO
Sychev Stepan
Asked On December 20, 2015 01:09 PM

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?

Dilli Babu Nandha Gopal [Syncfusion]
Replied On December 21, 2015 07:24 AM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.