Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Fri Apr 03, 2020 7:26 am

Hi,

When i run the below code with the attached file as input i get the error: {"Input string was not in a correct format."}
Code: Select all
 Document doc = new Document();
 doc.LoadFromFile(@"C:\Temp\new 1.html");


However, if I set the culture to InvariantCulture it works:
Code: Select all
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Document doc = new Document();
doc.LoadFromFile(@"C:\Temp\new 1.html");


OS and Region information:
Windows 10 Pro, Region: Sweden. Display language English(United states).

Best regards,
Fredrik
You do not have the required permissions to view the files attached to this post.

fredan
 
Posts: 9
Joined: Tue Jun 19, 2018 6:52 am

Fri Apr 03, 2020 8:20 am

Hello,

Thanks for your inquiry.
I did notice this issue and have logged it in our bug tracking system with the ticket SPIREDOC-4155 for further investigation.
If there is any update, we will let you know. Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 654
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Doc