有更多关于 WordBasic 的 FilePrintSetup 的文档吗?

发布于 2024-07-15 18:57:41 字数 436 浏览 2 评论 0原文

当我寻找一种无需更改 Windows 默认打印机即可更改 Word 打印机的方法时,我发现了 WordBasic.FilePrintSetup 函数。

不幸的是,我在 FilePrintSetup 上找不到任何真正的文档,甚至我通过 Google 找到的参数也没有正式记录。 (PrinterDoNotSetAsSysDefault

那么您知道任何文档吗? 或者您知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鲸落 2024-07-22 18:57:41

联机帮助记录了 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.

尸血腥色 2024-07-22 18:57:41

请注意,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

自此以后,行同陌路 2024-07-22 18:57:41

之前的回复是错误的。 ActivePrinter 确实会更改系统默认打印机。 微软的文档明确说明了这一点。

The previous reply is wrong. ActivePrinter DOES change the system default printer. Microsoft's documentation clearly states this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文