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 Nov 23, 2018 10:35 am

Hi,

I just upgraded the dll to version 8.11.6.60035 and got a problem when trying to convert to pdf.

workbook.LoadFromStream(originalStream);
workbook.SaveToStream(streamFile, Spire.Xls.FileFormat.PDF);


Error 12 'Spire.Xls.FileFormat' does not contain a definition for 'PDF'

It used to compile with the 7.11 version.

How can i convert to pdf with the new verison ?

Thanks for your answer.

LisiAero
 
Posts: 11
Joined: Tue Nov 13, 2018 12:04 pm

Mon Nov 26, 2018 2:42 am

Hi,

Thank you for your inquiry.
The new version 8.11.6 supports converting to PDF using SaveToStream method. Please make sure that you have replaced all the old dlls with the new dlls. I just made a demo for you, please download it from the following link.
https://www.e-iceblue.com/downloads/attachment/15685Demo.zip

Sincerely,
Jane
E-iceblue support team
Last edited by Jane.Bai on Mon Nov 26, 2018 8:37 am, edited 1 time in total.
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Nov 26, 2018 8:27 am

Hi Jane,

Your visual studio solution throw the same error.

In attachement you will find screenshots regarding the issue.

It's the 8.11.6.60035 version thast is deplyed to the gac and referenced in the solution.
Attachments
screenshots.zip
(157.53 KiB) Downloaded 190 times

LisiAero
 
Posts: 11
Joined: Tue Nov 13, 2018 12:04 pm

Mon Nov 26, 2018 8:43 am

Hi,

Thank you for your quick response.
From the version detail, I have noticed that you were using the Spire.XLS Standard Edition. Kindly note that standard edition does not support the conversion to PDF. Please remove the assembly from the GAC and reinstall the Pro version Spire.XLS Pack(Hotfix) Version:8.11.6. The version of spire.xls.dll in the pro version should be 8.11.6.6040.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Nov 27, 2018 8:22 am

Hi,

With the pro version it works fine.

Thanks for your help.

LisiAero
 
Posts: 11
Joined: Tue Nov 13, 2018 12:04 pm

Tue Nov 27, 2018 8:50 am

Hi,

Thank you for your feedback.
Just feel free to contact us if you need any help in the future.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Nov 27, 2018 9:23 am

Hi Jane,

Can you please take a look at this other post i made, especially my last question regarding Spire products.
I dont know if Mike will take a look at it since it's an old post.

post28903.html#p28903

Thanks for your feedback.

LisiAero
 
Posts: 11
Joined: Tue Nov 13, 2018 12:04 pm

Tue Nov 27, 2018 10:37 am

Hi,

Thanks for your inquiry.
Yes. the dlls Spire.PDF 4.11.8.2035 and Spire.xls 8.11.6.6035 (pro version) are in the Spire.Office Platinum (DLL Only) Version:3.11.5.
Yes, Spire.Pdf has pro version like Spire.XLS.
By the way, if you only want to use Spire.PDF Pro version and Spire.XLS Pro version, you can only buy the license of Spire.PDF Pro version and the license of Spire.XLS pro edition then apply two licenses. Note if you need two or more products working in one project, please downloadSpire.Office and reference corresponding dlls from it.
Sincerely,
Mike
E-iceblue support team
User avatar

Mike.Zhang
 
Posts: 93
Joined: Thu Sep 27, 2018 7:11 am

Return to Spire.XLS