阅读背景:

使用Excel打印输出时如何防止打印对话框

来源:互联网 

When I use the PrintOut method to print a Worksheet object to a printer, the "Printing" dialog (showing filename, destination printer, pages printed and a Cancel button) is displayed even though I have set DisplayAlerts = False. The code below works in an Excel macro but the same thing happens if I use this code in a VB or VB.Net application (with the reference changes required to use the Excel object).When I use the PrintOut method to print a Works




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: