Convert to Spreadsheet with advanced options
Leave feedback
GroupDocs.Conversion provides the SpreadsheetConvertOptions class to give you control over conversion result when convert to spreadsheet format. Along with common convert options from base class SpreadsheetConvertOptions has the following additional options:
- Format specifies desired result document type. Available options are: Xls, Xlsx, Xlsm, Xlsb, Ods, Ots, Xltx, Xlt, Xltm, Tsc, Xlam, Csv.
- Password thether the converted document will be password protected with the specified password.
- Zoom specifies the zoom level in percentage.
The following code snippet shows how to convert to Spreadsheet with advanced options:
using (Converter converter = new Converter("sample.docx"))
{
SpreadsheetConvertOptions options = new SpreadsheetConvertOptions
{
PageNumber = 2,
PagesCount = 1,
Format = SpreadsheetFileType.Xls,
Zoom = 150
};
converter.Convert("converted.xls", options);
}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.