禁止Outlook现场打印 [英] Suppressing Outlook Field Printing

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

问题描述

我们为Outlook编写了一个附件,可将电子邮件归档到我们的CRM系统中.在此过程中,它将Outlook消息ID作为消息本身保存为UserField.

We have written an add-on for Outlook that files emails into our CRM system. Int he process of this, it saves the Outlook Message ID as a UserField on the Message itself.

例如

currentUserProperty = Constants.APPLICATION_NAME + "EntryID";
mailItem.UserProperties.Add(currentUserProperty,
       Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText,
       Missing.Value,
       Missing.Value).Value = entryId;

不幸的是,这是一个HUUUGGEE号码,很像:

Unfortunately, this is a HUUUGGEE number, much like:

"00000000D502D779150E2F4580B1AADDF04ECDA6070097EF5A1237597748A4B4F9BFF540020800000006E9E4000068BB5B6DFC36924FAEC709A17D056583000002DE0E350000"

问题在于,当用户将消息打印出来时,Outlook坚持要包括此字段(在发件人/收件人"下方),并且由于它没有空格,因此无法包装ID并压缩A4页,直到它可以水平放置为止.这样会产生很小的电子邮件打印输出.

The problem is that when the user prints the message off, Outlook insists on including this field (beneath the From/To) and because it has no spaces, cannot wrap the ID and compresses the A4 page until it can fit on horizontally. This produces teeny-tiny email printouts.

有什么办法可以纠正这个问题?我曾想过用一个以空格分隔的字段覆盖字段OriginalEntryID(这是引起问题的一个字段),但是我从COM层得到了一个异常.我的下一站是尝试在Outlook静态对象上禁止显示此字段和其他用户定义字段的输出.

Is there any way I can correct this? I had thought of overwriting the field OriginalEntryID (which is the one causing the problem) with one delimited by spaces but I get an exception from the COM layer. My next stop is to try and suppress the output of this and other user-defined fields on Outlook stationary.

有人知道如何实现吗?

推荐答案

我认为这可能对我有帮助:

I think this might be able to help me:

http://www .add-in-express.com/forum/read.php?FID = 5& TID = 5071#postform

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

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