I am using <package id="Spire.Office" version="2.14" targetFramework="net452" />
with C# on a Windows 10 and server 2012 boxes showing the same problems
I have the following c# code:
- Code: Select all
Spire.Doc.Document document = new Spire.Doc.Document(@"c:\temp\test.docx",FileFormat.Docx);
var originalPageCount = document.PageCount;
When I call document.PageCount it gives me a stack overflow error. I can not trap it, I cannot predict it, and I cannot fix it.
I have tried to move the file local. I have tried to use the overload to tell the file what type of document it is.
All the same (Stack overflow exception)
I am becoming quite frustrated with these types of errors (there are many, and they all seem to be poorly handled errors on your part).
Any ideas how to fix this?