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