When I set the page height and width only first page changes

Dec 23, 2014 at 6:17 PM
When I set the page height and width only first page changes, the rest stay the default value.

For example I set the height and width:

worddoc.PageWidth = 1000;
worddoc.PageHeight = 500;

And then insert some paragraphs and images, but only the first page and last page are the new size for some reason.

Carmen
Jan 12, 2015 at 10:10 PM
I am having a similar issue. I'm not changing the page size but I am changing the right and left margin. The change only applies to the first and last page of the document Did you find a solution?
Jul 21, 2015 at 1:09 PM
Are calling InsertSectionBreak? I found out that calling this function causes that wrong page size is created.