Hi.
I have a problem with particular document in the attachment section. When I’m trying to run the code like this:
const string file = “input.docx”;I get this error:
var document = new Document(file);
Console.WriteLine(document.PageCount);
System.NullReferenceException: Object reference not set to an instance of an objI’m using Aspose.Words for .NET 15.12
ect.
at ? .( ? , ♫ , ♫ )
at ? .( ? , Single , Single )
at ? .()
at ? .☼ ()
at ? .? ?♫ (Boolean )
at ? .(? )
at ? .(? , Boolean )
at ? .(? )
at ? (♫? )
at ? .(♫? )
at ☼? .☼()
at ☼? .♫()
at ? .(♫? )
at ? .(♫? )
at ? .(♫? , Int32 )
at .( , Int32 , Boolean )
at ? .()
at ? .(? , Int32 , Boolean , Boolean)
at ()
at .(☼ , Int32 )
at .(☼ )
at .()
at .( )
at .(Boolean )
at . ()
at ♫? .(Document , ? )
at Aspose.Words.Document.UpdatePageLayout()
at Aspose.Words.Document.get_PageCount()