以下のようにWordを利用してプリントしていますが、両面印刷の設定箇所がわかりません。
manualduplexprint は印刷機が両面に対応していない場合の処置であり、印刷機が両面印刷に対応している場合の事がドキュメントに書かれてませんでした。
こことは別の場所で設定するのでしょうか?
ご存知の方、アドバイス頂ければと思います。
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
word.Application.Documents.Open(System.Windows.Forms.Application.StartupPath + "\file.rtf");
object background = false;
object range = WdPrintOutRange.wdPrintAllDocument;
object copies = 1;
object pagetype = WdPrintOutPages.wdPrintAllPages;
object printtofile = false;
object collate = false;
object activeprintermacgx = System.Type.Missing;
object manualduplexprint = false;
object printzoomcolumn = 1;
object printzoomrow = 1;
word.Application.PrintOut(
ref background,
Type.Missing,
ref range, //range
Type.Missing, //outputFilename
Type.Missing, //from
Type.Missing, //to
Type.Missing,
ref copies,
Type.Missing, //pages
ref pagetype,
ref printtofile,
ref collate,
Type.Missing,
activeprintermacgx,
ref manualduplexprint,
ref printzoomcolumn,
ref printzoomrow,
Type.Missing,
Type.Missing);
// 文書を閉じる
word.Application.Documents.Close();
word.Quit();
word = null;
C#
NetFramework4.5
office2015
MSDN
https://msdn.microsoft.com/ja-jp/library/microsoft.office.tools.word.document.printout.aspx
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/01 00:42