We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Its width of the document page

Thread ID:





129618 Mar 24,2017 02:25 PM UTC Mar 27,2017 07:28 AM UTC WinForms 1
Tags: DocIO
Asked On March 24, 2017 02:25 PM UTC

And somehow you can put your width of the docx document page. And do not use

section.PageSetup.PageSize = PageSize.A6;

Vijay Ramachandran [Syncfusion]
Replied On March 27, 2017 07:28 AM UTC

Hi Slava,

Thank you for using Syncfusion products.

On analyzing further with the given details, we suspect your requirement is to specify the custom page size for a Word document instead of PageSize.A6. If this is your requirement, then you can achieve this by below highlighted code snippet:
      //Create Word document instance.
      WordDocument wordDocument = new WordDocument();
//Set custom size (width, height) for the section.
      wordDocument.LastSection.PageSetup.PageSize = new SizeF(600, 800);
      //Add text to the paragraph.
      wordDocument.LastParagraph.AppendText("Word document created by DocIO with custom page size.");
//Save the Word document.
//Close the Word document instance.

If we misunderstood any of your requirement, then kindly elaborate the actual requirement with detailed description. Thereby we will analyze further on the mentioned case and will provided you appropriate solution

Vijay R


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon