我们在调用word打印的时候有时候出现过这种情况。即,我们调用wordDoc.PrintOut把数据发送给打印机后,调用关闭程序的方法,有时候会出现数据未完全发送给打印机造成数据丢失页面打印不全的问题。
解决办法:强制让程序把数据全部发给打印机后在关掉结束掉打印进程。
object wdpa = WdPrintOutRange.wdPrintAllDocument; wordApp.PrintOut(ref background, ref Nothing, ref wdpa, ref Nothing,
其上可以解决 |
转载于:https://www.cnblogs.com/chenbg2001/archive/2011/05/04/2036599.html