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.

Wed Feb 21, 2018 3:28 pm

I was hoping to use the new SaveToPdf method from Spire.XLS, but in the current FreeSpire.Office the XLS version is quite old and new and old packages don't seem to mix and match well. It always reports errors with the Spire.License version.

Will there be a new Office package soon?

Is there a workaround to make them mix and match while there is no new package?

jtampier
 
Posts: 11
Joined: Mon Sep 04, 2017 12:22 pm

Wed Feb 21, 2018 3:49 pm

Installing them in this order seems to be a possible workaround:
FreeSpire.Doc, FreeSpire.DocViewer, FreeSpire.XLS

jtampier
 
Posts: 11
Joined: Mon Sep 04, 2017 12:22 pm

Wed Feb 21, 2018 4:20 pm

But then it will not work without errors. Combining dlls that are not meant to be compiled yields a TypeLoadException when opening a more complex Word document.

So no workaround. Back to the first question:
Will there be a new Office release incorporating your great new features soon?

jtampier
 
Posts: 11
Joined: Mon Sep 04, 2017 12:22 pm

Wed Feb 21, 2018 4:50 pm

Further research showed me, that the current Office package has already all the tools needed.
SaveToPdf is just an extension method.

wb.SaveToFile(tempName, Spire.Xls.FileFormat.PDF);
and
doc.SaveToFile(tempName, Spire.Doc.FileFormat.PDF);

do the trick.

jtampier
 
Posts: 11
Joined: Mon Sep 04, 2017 12:22 pm

Return to Spire.XLS