Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.
Fri Jun 30, 2023 1:49 pm
product version : Spire.XLS for .NET Standard Edition Version:12.8
When I run the example below from Convert Excel to PDF in the tutorials, I get an error.
workbook.ConverterSetting property error
worksheet.SaveToPdf method error
Depending on the version, are there any properties or methods that do not exist?
'Create a Workbook instance
Dim workbook As Workbook = New Workbook()
'Load a sample Excel file
workbook.LoadFromFile("C:\\Users\\Administrator\\Desktop\\Sample.xlsx")
'Set worksheets to fit to page when converting
workbook.ConverterSetting.SheetFitToPage = True
'Get the first worksheet
Dim worksheet As Worksheet = workbook.Worksheets(0)
'Save to PDF
worksheet.SaveToPdf("WorksheetToPdf.pdf")
- Attachments
-
- WindowsApp6.zip
- (283.79 KiB) Downloaded 387 times
-
zorro012
-
- Posts: 6
- Joined: Mon Apr 25, 2022 12:20 pm
Mon Jul 03, 2023 1:56 am
Hi,
Thanks for your feedback.
The standard edition of our Spire.XLS is designed to provide essential features for document processing. However, it does not include the printing and conversion functionalities. These features are available in our Pro Edition.
To gain access to the printing and conversion capabilities, we recommend considering an upgrade to our Pro Edition.
Thank you for your understanding. Please don't hesitate to reach out if you require any further assistance.
Best regards,
Triste
E-iceblue support team
-
Triste.Dai
-
- Posts: 1000
- Joined: Tue Nov 15, 2022 3:59 am