SpreadsheetLoadOptions

SpreadsheetLoadOptions class

Options for loading Spreadsheet documents.

public class SpreadsheetLoadOptions : LoadOptions

Constructors

Name Description
SpreadsheetLoadOptions() Initializes new instance of SpreadsheetLoadOptions class.

Properties

Name Description
AllColumnsInOnePagePerSheet { get; set; } If AllColumnsInOnePagePerSheet is true, all column content of one sheet will output to only one page in result. The width of paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect.
AutoFitRows { get; set; } Autofits all rows when converting
CheckExcelRestriction { get; set; } Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K, if this property is true, you will get an Exception. If this property is false, we will accept your input string value as the cell’s value so that later you can output the complete string value for other file formats such as CSV. However, if you have set such kind of value that is invalid for excel file format, you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file.
ConvertRange { get; set; } Convert specific range when converting to other than spreadsheet format. Example: “D1:F8”.
CultureInfo { get; set; } Get or set the system culture info at the time file is loaded
DefaultFont { get; set; } Default font for spreadsheet document. The following font will be used if a font is missing.
FontSubstitutes { get; set; } Substitute specific fonts when converting spreadsheet document.
Format { get; set; } Input document file type.
Format { get; } Input document file type.
HideComments { get; set; } Hide comments.
OnePagePerSheet { get; set; } If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true.
OptimizePdfSize { get; set; } If True and converting to Pdf the conversion is optimized for better file size than print quality.
Password { get; set; } Set password to unprotect protected document.
SheetIndexes { get; set; } List of sheet indexes to convert. The indexes must be zero-based
Sheets { get; set; } Sheet name to convert
ShowGridLines { get; set; } Show grid lines when converting Excel files.
ShowHiddenSheets { get; set; } Show hidden sheets when converting Excel files.
SkipEmptyRowsAndColumns { get; set; } Skips empty rows and columns when converting. Default is True.

Methods

Name Description
Clone() Clones current instance.
override Equals(object) Determines whether two object instances are equal.
virtual Equals(ValueObject) Determines whether two object instances are equal.
override GetHashCode() Serves as the default hash function.

See Also