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:

Created:

Updated:

Platform:

Replies:

121494 Dec 20,2015 01:09 PM Dec 21,2015 07:24 AM WPF 1
loading
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:





Regards,

Dilli babu


CONFIRMATION

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.

;