Friday, 15 August 2014

c# - Set print view for word document 2013 -



c# - Set print view for word document 2013 -

i have ms word add together in based on msword 2010. add together in can open model file (*.dotx) fills out placeholder. works fine 2010. if seek opening file in msword 2013 opens in reading mode. want open in print view. tried set view wdprintview didn't help. tried this:

using word = microsoft.office.interop.word; word.application app = new word.application(); word.document doc = app.documents.add(this.name); doc.activewindow.view.type = word.wdviewtype.wdprintview;

does know why still opens in "reading mode"?

suggestions appreciated :)

if mean both document , printview. can add together next line, won't show word document:

app.visible = false;

(if mean.)

c# ms-word

No comments:

Post a Comment