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