spread控件我没用过,ActiveReport我倒用到过
ActiveReport的直接打印是ar.print(false,false)
print方法里有是否显示的bool参数,不知道你的spread控件打印方法中是否有参数设置,或者看看是否有Printer这个设置打印机的属性,也许里面有你所需要的参数设置
飘过~
ActiveReport的直接打印是ar.print(false,false)
print方法里有是否显示的bool参数,不知道你的spread控件打印方法中是否有参数设置,或者看看是否有Printer这个设置打印机的属性,也许里面有你所需要的参数设置
飘过~
ActiveReport的直接打印是ar.print(false,false)
print方法里有是否显示的bool参数,不知道你的spread控件打印方法中是否有参数设置,或者看看是否有Printer这个设置打印机的属性,也许里面有你所需要的参数设置
飘过~
就像你说的那样,程序正常打印设置一下参数就不会弹出打印对话框了,我的问题是:spread内部去调用打印机时谈出来的对话框,是打印机驱动程序弹出来的。不是spread这种第三方控件谈出来的。
不可能是打印驱动程序弹出来的。也不要用钩子,这是偏方不是正解。
不知道你做的是什么程序,如果不spread弹出来的,应该是你自己的程序弹出来的。修改文件后直接关闭窗口是不是也弹出对话框?找到位置以后就应该有办法了。
可以肯定地是,肯定不是自己程序谈出来的。你可以自己测试一下,用Office自带的ImageWrite输出打印。
http://thesource.ofallevil.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.office.misc&tid=c6321dbf-aac6-4cbb-871c-1d509977e2fa&mid=c6321dbf-aac6-4cbb-871c-1d509977e2fa&cat=&lang=&cr=&sloc=&p=1since you would need to use SendKeys (SendKeys "{Enter}") to send
the Enter key to the Save As dialog box for the Document Image Writer to
accept the default file name. 好像要在C#代码里发送回车键SendKeys "{Enter}"的样子'============
Sub MSPaperPrint
'MS Paper is the original name of MS Office Document Imaging'
'MS Office Live Meeting Writer variant may also be an option' Active Printer = "MS Office Document Image Writer"
Application.PrintOut OutputFilename:="<your path and default name here>" // 路径+文件名End Sub
'============== 这位还提供了一个宏
那个宏你倒可以在c#里转换成调用word的方法试试看