c# 4.0 - Dynamically change the orientation of a page in Word using C# -
i have different images database , insert word document,but each image has placed inside word document depending on orientation of word s page.
i.e every process have insert images same page of word document,so need dynamically change orientation of particular page depending on image being inserted.
please let me know how can dynamically change orientation of 1 particaular page in word using c#
to apply landscape only current page, used this:
range newrange = _worddoc.range(currentdocumentposition, currentdocumentposition); newrange.insertbreak(wdbreaktype.wdsectionbreaknextpage); _worddoc.sections[_worddoc.sections.count].pagesetup.orientation = wdorientation.wdorientlandscape;
it important apply break of type wdsectionbreaknextpage.
Comments
Post a Comment