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.
Unfortunately, activation email could not send to your email. Please try again.

Its width of the document page

Thread ID:

Created:

Updated:

Platform:

Replies:

129618 Mar 24,2017 10:25 AM Mar 27,2017 03:28 AM Windows Forms 1
loading
Tags: DocIO
Slava
Asked On March 24, 2017 10:25 AM

Hello!
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 03:28 AM

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();
      wordDocument.EnsureMinimal();
     
//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.
      wordDocument.Save(@"sample.docx");
     
//Close the Word document instance.
      wordDocument.Close(); 

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

Regards,
Vijay R
 


CONFIRMATION

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.

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.

;