Incorrect pagecount

Hello,



When I want to print this document (in file attachment) Aspose return a wrong page count (4) while the page number is 8.



Can you help me ?



Below my code



If fnExtension.StartsWith(“doc”, StringComparison.CurrentCultureIgnoreCase) Then

'Impression d’un fichier Word



Dim AsposeWord As New Aspose.Words.Document(fnDocument)

'Lis le flux d’information du fichier Word

AsposeWord.UpdatePageLayout()

AsposeWord.UpdateWordCount()

Dim test As Integer = AsposeWord.PageCount

Dim test2 As Integer = AsposeWord.BuiltInDocumentProperties.Pages

AsposeWord.Print(fnFichier)

'Imprime le document sur l’imprimante

AsposeWord = Nothing

End If

Hi Nicolas,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for .NET 15.9.0 and have not found the shared issue. Please use Aspose.Words for .NET 15.9.0.

Perhaps, you are using Aspose.Words without license. Please note that in evaluation mode there
are some limitations applied. E.g A
spose.Words injects an evaluation watermark at the top of the document. The document’s content are truncated after a certain number of paragraphs during import or export.


Please request for temporary license from here:
http://www.aspose.com/corporate/purchase/temporary-license.aspx

Please read the following documentation link about applying license.
http://www.aspose.com/docs/display/wordsnet/Applying+a+License

Hi Tahir !

Thank you for your inquiry. I’m a stupid guy, I work in my lab environment and the licence is expired. But with a valid licence it’s work like a charm.

Thanky a lot.

Have a nice sunny day.

Hi Nicolas,

It is nice to hear from you that you have found the solution of your issue. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.