Landscape Orientation in DocIO Word Engine

Hi, 
I want to change the page Orientation to Landscape when saving the word document because by default it comes in Portrait.  Im using Word Engine (Syncfusion.DocIO.DLS)which exports data directly to a word document from SQl Table.






Many Thanks.



1 Reply 1 reply marked as answer

MR Manikandan Ravichandran Syncfusion Team August 27, 2020 09:53 AM UTC

Hi Simon,

Thank you for contacting Syncfusion support.

From the given details, we have found that your requirement is to change the page orientation. For this requirement, we suggest you to use the below code example.
 
//Sets page setup options
section.PageSetup.Orientation = PageOrientation.Landscape; 

Please refer the below UG link to know more on this.
https://help.syncfusion.com/file-formats/docio/working-with-sections#specifying-page-properties

Please let us know if you have any further questions.

Regards,
Manikandan Ravichandran
 


Marked as answer
Loader.
Up arrow icon