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

Free Support Forum - aspose.com

Aspose and Word page orientation

As others have run into to their frustration, Word will automatically change the page orientation based on the width vs. height. This can be very frustrating when it conflicts with printing forms/labels that don’t conform to that pattern.

Changing the section.PageSetup.Orientation doesn’t seem to have any effect on this. If Aspose were able to override this as an option, that would be very helpful. For instance actually force a document that was wider than taller to profile.

In my current case, I had to create a new template that used a taller than needed page size, and forced all the content to the bottom of the page within a wrapping table.


To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • Aspose.Words 19.6 generated output document showing the undesired behavior
  • Your expected document showing the correct output. You can create expected document by using MS Word.
  • Please also create a simplified standalone 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.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.