打印PDF文件 [英] Printing PDF Files

查看:74
本文介绍了打印PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想用word打印pdf文件,但我不想打开单词,不应告知用户该单词正在做某事。不幸的是,一条消息显示evertime  word正在打开"外国"pdf文件以转换
它。至于我知道有一个参数可以在"打开"状态下抑制此信息。功能(confirmConversions)。但它似乎无法奏效,无论如何都会出现这样的信息。请看一下:



    Private Shared Sub PrintWithWord(strFile As String,strPrinter As String)

解决方案

ConfirmConversions是布尔值,而不是Object。删除行


Dim m As Object = System.Reflection.Missing.Value



Dim confirmConversions As Object = False


并将打开文档的行更改为


doc = app.Documents.Open(strFile,False)


Hi all, i want to print pdf files by using word but i don't want to open word and the user should not be informed that word is doing something. Unfortuneately a message displays evertime word is opening the "foreign" pdf file to convert it. As far as i know there is a parameter to suppress this info in the "open" function (confirmConversions). But it seems not to work, the message appears anyway. Please have a look:


    Private Shared Sub PrintWithWord(strFile As String, strPrinter As String)

解决方案

ConfirmConversions is a Boolean, not an Object. Delete the lines

Dim m As Object = System.Reflection.Missing.Value

and

Dim confirmConversions As Object = False

and change the line that opens the document to

doc = app.Documents.Open(strFile, False)


这篇关于打印PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆