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 Apr 23, 2014 11:34 pm

Hi,

I am attempting to load a xls file from memory stream into the pdfConverter for Xls and it is not working.

fileStream is a MemoryStream (created from the excel file)
Code: Select all
Spire.Xls.Converter.PdfConverter pdfConverter = new Spire.Xls.Converter.PdfConverter(fileStream);


I have tried the same for Xls and Xlsx with th esame outcome.

My exception is:
Unhandled Exception: System.Runtime.InteropServices.COMException: A disk error o
ccurred during a write operation. (Exception from HRESULT: 0x8003001D (STG_E_WRI
TEFAULT))

at spr940.1(UInt64 A_0, Byte[] A_1, UInt32 A_2, UInt32& A_3)
at spr2618.0(Stream A_0)
at spr911.1(Stream A_0)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.0(Stream A_0, String A_1, ExcelVers
ion A_2, ExcelParseOptions A_3)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook..ctor(spr2734 A_0, Object A_1, Stre
am A_2, ExcelParseOptions A_3, ExcelVersion A_4)
at spr911.0(Object A_0, Stream A_1, ExcelVersion A_2, ExcelParseOptions A_3)
at spr4122.0(Object A_0, Stream A_1, ExcelVersion A_2, ExcelParseOptions A_3)

at spr1659.0(Stream A_0, ExcelVersion A_1, ExcelParseOptions A_2)
at spr1659.0(Stream A_0, ExcelVersion A_1)
at spr1659.0(Stream A_0)
at Spire.Xls.Workbook.LoadFromStream(Stream stream)
at Spire.Xls.Converter.PdfConverter..ctor(Stream stream)
at ConsoleApplication1.SpireConverter.ConvertExcel(Stream fileStream) in c:\U
sers\Administrator\Documents\Visual Studio 2013\Projects\ConsoleApplication1\Con
soleApplication1\Program.cs:line 105
at ConsoleApplication1.Program.Main(String[] args) in c:\Users\Administrator\
Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Pr
ogram.cs:line 58
Press any key to continue . . .

Could anyone hint as to what the issue could be?

Using Spire.Office 2.7 with 2.7.3 hotfix

temelj
 
Posts: 1
Joined: Wed Apr 23, 2014 1:35 am

Thu Apr 24, 2014 3:08 am

Hello,

Thanks for your feedback.
We have reproduced the issue, which has been transferred to our Dev team, once there are any progress, we will inform you ASAP.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support tem
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Jul 21, 2014 6:54 am

Hello,


The issue has been resolved. And the newest Spire.Office has been released, please download and test Spire.Office Platinum Version:2.9
​If there are any questions, welcome to get it back to us.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri Jul 25, 2014 8:48 am

Hello,

Have you tested Spire.Office Platinum Version:2.9(http://www.e-iceblue.com/Download/downl ... t-now.html)? Could you please give us some feedback if convenience?
If you have any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Return to Spire.XLS