We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pages Count in word is not working

When we are calculating number of pages for attached documents, program is hanging. During debug, count of pages is giving error “Function evaluation timed out.” and some times gives large page count.

    public static void PageCount(String FileIn)
        Document doc = new Document(FileIn);

pagecount.zip (663.9 KB)

@crshekharam Thank you for reporting this problem to us. I have logged the problem as WORDSNET-23304. We will keep you informed and let you know once it is resolved.

@alexey.noskov, this is working correctly upto version 21.9 and not working in above versions

@crshekharam Thank you for additional information. We have forwarded this information to the responsible developer.

The issues you have found earlier (filed as WORDSNET-23304) have been fixed in this Aspose.Words for .NET 22.3 update also available on NuGet.