Free Support Forum -

PageCount is not getting properly in Word

Hi Team,

PageCount is not coming properly. Maximum its taking only 8 pages.

Here i have atached the sample file. Please check and Clarify ASAP.

public static void Testing(string fileN)
var fileName =fileN;
var doc = new Document(fileName);
var pageCount = doc.PageCount;
var shapeCount = doc.GetChildNodes(NodeType.Shape, true);

Thanks and Regards, (25.1 KB)


Thanks for your inquiry. Please use the latest version of Aspose.Words for .NET 18.10 and apply the license before importing the document into Aspose.Words’ DOM.