Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Jun 27, 2014 9:15 am

Hi all,

I'm using Spire.Doc v5.0.12 and trying to load this word document with this code:

Code: Select all
var document = new Document();
document.LoadFromStream(stream, FileFormat.Docx2010);


But it thows exception:

Code: Select all
System.FormatException: Input string was not in a correct format.
   at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Single.Parse(String s, IFormatProvider provider)
   at sprᱣ.ᜀ(TextBox A_0, String A_1, String A_2)
   at sprᱣ.ᜃ(XmlReader A_0, IDocumentObject A_1)
   at sprᱣ.ᜆ(XmlReader A_0, IDocumentObject A_1)
   at sprᱣ.ᜀ(MemoryStream A_0, MemoryStream A_1)
   at sprᱣ.ᜀ(XmlReader A_0, ParagraphItemCollection A_1, MemoryStream A_2)
   at sprᱣ.ᜈ(XmlReader A_0, ParagraphItemCollection A_1)
   at sprᱣ.ᜐ(XmlReader A_0, ParagraphItemCollection A_1)
   at sprᱣ.ᜎ(XmlReader A_0, IDocumentObject A_1)
   at sprᱣ.ᜀ(HeadersFooters A_0, spr⁕ A_1, String A_2, Boolean A_3)
   at sprᱣ.ᜁ(XmlReader A_0, IDocumentObject A_1)
   at sprᱣ.ᜎ(XmlReader A_0, IDocumentObject A_1)
   at sprᱣ.ᜋ(Stream A_0)
   at sprᱣ.ᜁ(sprᡫ A_0)
   at sprᱣ.ᜁ(Document A_0)
   at sprᱣ.ᜁ(Stream A_0, Document A_1)
   at Spire.Doc.Document.ᜈ(Stream A_0)
   at Spire.Doc.Document.LoadFromStream(Stream stream, FileFormat fileFormat, String password)
   at NDAW.Front.ExportEntityToWord.Spire.SpireWordTemplateEntityExporter.LoadTemplate(Stream stream) in d:\Work\NDAW\src\branches\workspace-2.0\NDAW.Front\ExportEntityToWord\Spire\SpireWordTemplateEntityExporter.cs:line 61


You can find file in attachments

ant
 
Posts: 10
Joined: Mon Sep 23, 2013 1:58 pm

Mon Jun 30, 2014 1:58 am

Hello,

Thanks for your feedback.
We have noticed the issue you mentioned, which has been posted to our Dev team, once there is any update, we will let you know immediately.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Wed Jul 16, 2014 9:28 am

Hello,

The issue has been resolved, and the newest hotfix has been released, please download Spire.Doc Pack(hot fix) Version:5.2.16 and test it again.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Mon Jul 21, 2014 9:53 am

Hello,

Have you tested the new hotfix: Spire.Doc Pack(hot fix) Version:5.2.16? Has the issue been resolved?
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

Thu Sep 11, 2014 12:08 pm

Thanks, we will test it after update

ant
 
Posts: 10
Joined: Mon Sep 23, 2013 1:58 pm

Fri Sep 12, 2014 3:32 am

Hello,

Thanks for your response.
If there are any questions, welcome to get it back to us.
Sincerey,
Gary
E-iceblue support team
User avatar

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

Return to Spire.Doc