从电子邮件中删除多余的换行符 [英] Remove extra line breaks from email message
问题描述
如果我查询MailItem的Body属性,它可能会也可能没有删除额外的换行符。 有没有办法说我希望身体返回,我希望它包含换行符?
If I query the Body property of a MailItem, it may or may not have extra line breaks removed. Is there a way to say that I want the body returned and I want it to have the line breaks included?
推荐答案
Hello Scott,
Hello Scott,
您是否尝试过 MailItem.GetInspector()。WordEditor 属性并将WordEditor强制转换为Word.Document (参考Word对象库)?这种方式你可以将maniuplate消息体作为Word文档,对身体有更丰富的控制。有关
的更多信息,请参阅此链接:
http:/ /msdn.microsoft.com/en-us/library/bb175499.aspx
Have you tried MailItem.GetInspector().WordEditor property and cast WordEditor to a Word.Document(Reference Word Object Library)? Is this way you could maniuplate message body as a Word document, have the richer control of the body. For
more information please refer to this link:
http://msdn.microsoft.com/en-us/library/bb175499.aspx
希望这会有所帮助。
Hope this helps.
Tim Li
MSDN订阅者支持 在论坛中
如果您对我们的支持有任何意见和建议,请联系
msdnmg@microsoft.com
这篇关于从电子邮件中删除多余的换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!