I found out that when the docx is in compatibility mode, the print preview is correct. But when the docx is not in compatibility mode, the print preview is wrong. You can create a new docx by MS Word 2019, and then use the code to create a table in it, you will see that the print preview is wrong.
Please also create a standalone simple console application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words DLL files in it to reduce the file size.
Please also list the complete steps that we can perform on our end to be able to observe this undesired behavior. For example, what steps did you perform in MS Word 2019 to preview Aspose.Words generated document etc.
As soon as you get these pieces of information ready, we will start further investigation into your scenario and provide you more information. Thanks for your cooperation.
Hi, I create a simple winform application that can show the print preview of the docx.
The steps is that:
Run the application, click the button ‘EditDocx’.
2.The application open the manual.docx and do mail merge operation to create a table.
3.Save the doc as edited.docx, and preview the doc.
I have converted (using the Save As command) the edited.docx to PDF format by using MS Word 2019 and attached it here for your reference. Please tell if such an output (character spacing, shapes of characters etc) is acceptable for you?
We also managed to observe the difference in PrintPreviewControl and logged it in our issue tracking system with ID WORDSNET-20657. We will further look into the details of this problem and will keep you updated on the status of linked issue. We apologize for your inconvenience.