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

Free Support Forum - aspose.com

Preserve Table Alignment Positioning & Page Numbering during Converting / Printing Word Document C# .NET

Hi Support,

As discussed, we have used Aspose in our application to print word document. We are getting some alignment issues in the printed copy. The issue is that, We sometimes get different number of pages compared to the original document, we get the page number variations, and many.

We have a sample document which has 70 pages in the original document and the generated one. However the printed copy shows page 1 of 62, till 62nd page and 62 of 63, 63 of 64 and so on till page 70.

We would send sample document separately for debugging if required. Please support.



After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 19.10, we were unable to reproduce this issue on our end.

Please see the following output PDF file that we generated from your DOCX file by using the following simple code of Aspose.Words:

Document doc = new Document("E:\\Sample.docx");

So, please upgrade to the latest version i.e. 19.10. Hope, this helps.

Thanks for the help.
In the latest version of Aspose, this is working fine.


Thanks for your feedback. In case you have further inquiries or need any help in future, please let us know.

Hi Support,

After taking the latest version (19.10) of aspose, we are facing a different issue now. We are seeing some alignment issues with table overlaps when using the document for printing using aspose.

Please find the sample document attached and check the page no 4 of printed document. You can notice the alignment issue.

Sample Document and generated document are attached -
Sample_Alignment issue _15_11_19.zip (131.8 KB)


We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19558. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Please also provide information about the exact Aspose.Words’ old version number for which there were no such table alignment/overlapping problems for this document on your side previously.

Hi @awais.hafeez, The earlier version which we used and did not face this alignment problem was v18.8.
Hope this information helps.


Thanks for the additional information. You are right; this specific issue does not occur when using 18.8 version of Aspose.Words. We have logged these findings in our issue tracking system and will keep you posted on any further updates.

@awais.hafeez - Any update on this issue yet?


I am afraid, your issue (WORDSNET-19558) is currently ‘pending for analysis’ and is in the queue. We will inform you via this thread as soon as this issue will be resolved in future. We apologize for your inconvenience.

@awais.hafeez Any chance that this process can be speeded up? We have some clients who are affected by this issue.


We have noted your concerns and will update you as soon as any estimates or further updates regarding this issue may be available. We apologize for any inconvenience.

The issues you have found earlier (filed as WORDSNET-19558) have been fixed in this Aspose.Words for .NET 20.1 update and this Aspose.Words for Java 20.1 update.

Hi Support,
We are not able to download the version 20.1 from above provided link. After clicking on Download button, it is just showing a blank screen. Could you please check once and let us know if there is any issue with URL or any alternative link for downloading?


Both of the following links are working fine on our end:

Please first try to clear your web browser’s cache/cookies, then Sign in to https://www.aspose.com/, and then try opening the above links again.

Alternatively, you can try installing Aspose.Words for .NET API via NuGet Package.

For Java, please get latest version of Aspose.Words for Java from Maven.

Hope, this helps.

Hi Support,

Thanks for the support. The fix is working fine.
For internal audit purpose, could you please let us know what was the root cause for this issue since it worked on some documents and did not work for some others.



The issue (WORDSNET-19558) occurred because of an unanticipated scenario when handling a jagged floating table broken across pages. The issue only occurred under the following conditions:

  • A table with wrap type “Around” is broken across several pages;
  • The table is jagged (some rows do not have cells in some columns);
  • When the table is broken across pages, all rows on a specific page do not have any cells in the last column.

This is a rather uncommon condition so that is why the issue only happened with some documents.

You may also please ZIP and upload your other simplified Word document and corresponding Aspose.Words generated PDF file showing the undesired behavior here for testing. We will then investigate the issue with that document on our end and provide you more information.

A post was split to a new topic: Table header appears on previous page - Word to PDF