Part of header and footers cut off when printing

Hi All,
We have stumbled across an issue that we cannot currently overcome. We have attempted to troubleshoot the problem using the information already held on the forums to no prevail. Our line of business involves the printing of a varying amount of letter templates stored in a .dot format. When processing these documents via C# (populating fields and other information) then printing or saving; there seems to be a form of misalignment between the different elements of the document.
The headers seem to be pushed up and the footer is missing entirely. The body text of the documents also appears to be raised from its original position. Printing using Microsoft Word (2003 and 2010) is fine.
Things that have been tried to be configured:
- Paper Size/Height/Width - alters the page alignment but not how it is expected.
- Altering the page size to a different size (to A5 and Custom) just as an investigation, yet it still cut off the top of the document in the same way the preferred A4/Letter options did.
- Altering Margins, this does not cater for all nodes (images, paragraphs etc.) and moves only some of them and therefore is unreliable.
- Looping through each node to apply individual settings - bit of a hack but is inconsistent with many templates.
- Tried using the extension of the word files as a ‘.doc’ and ‘.docx’. Tried saving the '.dot.’ file as a ‘.docx’ first then using that as the template.
We have struggled to find a solution for this issue and was wondering whether you had any further information or knowledge regarding this problem. We have attached a sample document template that is causing the printing problem through aspose.words.

Hi Colin,

Thanks for your inquiry.

Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing. We will investigate the issue on our side and provide you more information.

Thanks for the response, please see attached.

Colin

Hi Colin,

Thanks for sharing the detail.

We have tested the scenario using latest version of Aspose.Words for .NET 16.12.0 and have not found the shared issue. Please use Aspose.Words for .NET 16.12.0.

Hi Tahir,

We’ve updated to the latest version and we’re still getting the same behaviour. Can you confirm all is ok for you when you use the supplied software and the supplied word template?

I’ve attached images of what our printouts look like for comparison.

thanks

Colin

Hi Colin,

Thanks for sharing the detail. We have logged this problem in our issue tracking system as WORDSNET-14599. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Colin,

Thanks for your patience. You are facing this issue due to Word option ‘Scale content for A4 or 8.5 x 11" paper sizes’. See the attached image for detail.

The source page size is Letter. If this option is on and default user’s page size is A4, Microsoft Word changes layout while printing. It scales and shifts page content. So, when it’s printed it seems different as when it displayed in Word. Aspose.Words doesn’t support this feature for now, so document is printed as it is.

If you turn this option off and changed page size to A4, the document is printed the same way both in MS Word and Aspose.Words.

Please try printing document with the option disabled. If you get the same result, we suggest you please change document layout (increase page margins or change position of some elements). Hope this helps you.