有更多关于 WordBasic 的 FilePrintSetup 的文档吗?
当我寻找一种无需更改 Windows 默认打印机即可更改 Word 打印机的方法时,我发现了 WordBasic.FilePrintSetup
函数。
不幸的是,我在 FilePrintSetup
上找不到任何真正的文档,甚至我通过 Google 找到的参数也没有正式记录。 (Printer
和 DoNotSetAsSysDefault
)
那么您知道任何文档吗? 或者您知道 FilePrintSetup
支持的其他参数吗? (我对设置托盘/纸盒特别感兴趣)
编辑:我发现可以使用 FilePageSetup
选择纸盒,这是一个同样未记录的功能。 因此,如果您有有关此功能的信息,我也会很感激:)
I found the WordBasic.FilePrintSetup
function when I was searching for a way to change Word's printer without changing Windows' default printer.
Unfortunately I could not find any real documentation on FilePrintSetup
, even the parameters I found with Google aren't officially documented. (Printer
and DoNotSetAsSysDefault
)
So do you know of any documentation? Or do you know additional parameters which are supported by FilePrintSetup
? (I'm especially interested in setting the tray/paper bin)
EDIT: I found out that the paper bin can be selected with FilePageSetup
, an equally undocumented function. So if you have information about this function, I'd appreciate them, too :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
联机帮助记录了 WordBasic 函数/方法的等效 VBA。 但这些都是只读的。
http://msdn.microsoft.com/en-us /library/aa264153(office.10).aspx
编辑:ActiveDocument.PrintOut 允许您为第一页和后续页面选择托盘。
The online help documents the equivalent VBA for WordBasic functions/methods. These are read-only though.
http://msdn.microsoft.com/en-us/library/aa264153(office.10).aspx
Edit: ActiveDocument.PrintOut allows you to select a tray for first and following pages.
请注意,fileprintsetup 方法的 Printername 参数区分大小写。 XP和Win7不以相同的方式存储服务器\打印机名称,因此您在升级操作系统时可能会发现问题
Note that the printername parameter of the fileprintsetup method is case-sensitive. XP and Win7 don't store server\printernames the same way so you may find a problem when upgrading OS
之前的回复是错误的。 ActivePrinter 确实会更改系统默认打印机。 微软的文档明确说明了这一点。
The previous reply is wrong. ActivePrinter DOES change the system default printer. Microsoft's documentation clearly states this.