Articles in this section
Category / Section

How do I set the document page size?

1 min read

 

The section.PageSetup.PageSize property is used to set the custom document page size.

C#

// Set the document page size.

section.PageSetup.PageSize = new SizeF( 550, 300 );

VB

' Set the document page size.

section.PageSetup.PageSize = New SizeF(550, 300)

Here is the sample.

Page_Size.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied