简体   繁体   English

VB.net打印颜色或黑白

[英]VB.net print color or black and white

I have this code in vb.net which prints out a word document: 我在vb.net中有这个代码,它打印出一个word文档:

 objWordApp.PrintOut(Range:=word.WdPrintOutRange.wdPrintCurrentPage, _
                            Item:=word.WdPrintOutItem.wdPrintDocumentContent, _
                            Copies:="1", _
                            Pages:="1")

how can i add whether to print in colour or black and white? 如何添加是以彩色还是黑白打印?

我认为在VBA中使用类似.PageSetup.BlackAndWhite = False的东西,所以如果你的对象有智能感知,这可能会指向正确的方向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM