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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -