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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XlsIO excel document paper size in inches or pixels

Thread ID:

Created:

Updated:

Platform:

Replies:

121494 Dec 20,2015 06:09 PM UTC Dec 21,2015 12:24 PM UTC WPF 1
loading
Tags: XlsIO
Sychev Stepan
Asked On December 20, 2015 06:09 PM UTC

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 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


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.

Warning Icon 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.Close Icon

;