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
Dim test As Integer = AsposeWord.PageCount
Dim test2 As Integer = AsposeWord.BuiltInDocumentProperties.Pages
'Imprime le document sur l’imprimante
AsposeWord = Nothing
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 Aspose.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 read the following documentation link about applying 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.
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.