如何使用Interop.Outlook更改打印选项 [英] How to use Interop.Outlook to change print options

查看:91
本文介绍了如何使用Interop.Outlook更改打印选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Interop.Outlook API在Outlook中动态更改打印选项".例如,我想将备忘录样式页面设置"更改为使用具有横向方向的信纸大小"纸张.我该怎么做呢?

I would like to use the Interop.Outlook API to dynamically change the Print Options in outlook. For example I would like to change the Memo Style Page Setup to use Letter Size paper with a Landscape Orientation. How can I go about doing this?

我查看了Outlook文档,但找不到如何执行此操作.这是只能使用注册表完成的事情吗?

I have looked at the Outlook documentation and I have not been able to find how to do this. Is this something that can only be done using the registry?

如果是这样,有人会知道我该怎么做吗?

If so, would anyone know how I can accomplish this?

非常感谢您的宝贵时间.

Thank you very much for your time.

推荐答案

Outlook对象模型无法控制任何打印设置. MailItem.PrintOut就是您所得到的.

Outlook Object Model provides no way to control any print settings. MailItem.PrintOut is all you get.

您可能要导出消息(MailItem.saveAs),然后将其导入Word并使用Word对象模型进行打印.

You might want to export the message (MailItem.saveAs), then import it in Word and use Word Object Model to print.

这篇关于如何使用Interop.Outlook更改打印选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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