Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.
Tue Feb 02, 2021 4:02 pm
Hi
I am using SpirePDF licensed version (7.1.10.2040) in a VB.NET 4.0 winform application
I tried to use LoadFromFile to load an excel file into a PdfDocument
but getting a blank pdf
Should it be possible by SpirePDF ?
This is my code :
Dim doc As New PdfDocument()
doc.LoadFromFile("C:\X.xlsx", FileFormat.XLSX)
Thank You
Tsahi
-

tsahisasson
-
- Posts: 1
- Joined: Tue Sep 29, 2020 9:33 am
Wed Feb 03, 2021 2:16 am
Hello Tsahi,
Thanks for your inquiry.
Sorry that our Spire.PDF does not support converting Excel to PDF, but our Spire.XLS support this feature. You can download the latest
Spire.XLS Pack Version:11.1 and refer to following code to have a try.
- Code: Select all
Dim workbook As New Workbook()
workbook.LoadFromFile("test.xlsx")
workbook.SaveToFile("sample.pdf", FileFormat.PDF)
If you have any other questions related to our products, just feel free to contact us.
Sincerely,
Brian
E-iceblue support team
-


Brian.Li
-
- Posts: 1271
- Joined: Mon Oct 19, 2020 3:04 am