OLE连接Word打印(Print)问题
我用OLE连接WORD,然后直接利用WORD打印:
方法:ole_word.application.ActiveDocument.printout()
出现问题是在某些机器上没问题,在有的机器上却没反应。
Try
ole_word.application.ActiveDocument.printout()
ole_word.ActiveDocument.Close(false)
Catch (RuntimeError ErrPrint)
MessageBox("提示",ErrPrint.GetMessage())
end try
没提示出错,并且打印机没反映。
打印机是网络打印机(打印测试页或者直接在WORD里打印没问题)、WORD是2000
请指点