错误Outlook加载项FormRegionShowing消息的属性已更改.. [英] error Outlook Add-in FormRegionShowing The properties of the message have been changed..

查看:250
本文介绍了错误Outlook加载项FormRegionShowing消息的属性已更改..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在创建一个新的Outlook2013或2016 VSTO3或4个加载项目:



  • 将表单区域添加到VSTO加载项项目。
  • 我在Private Sub FormRegionShowing()中添加了2个字符串代码:

> newEmail = Me。 OutlookItem> Dim text As String = Me.newEmail.Body.ToString 


运行后我收到来自outlook的警告消息说:"消息的属性已被更改"但上面代码的2行
不会改变任何东西。


如果我移动2< sup> nd< / sup>在FormRegionShowing()之外的行然后警告消息消失。


完整警告信息:


 '在显示表单区域之前发生。 &NBSP;&NBSP;&NBSP; '使用Me.OutlookItem获取对当前Outlook项的引用。 &NBSP;&NBSP;&NBSP;
'使用Me.OutlookFormRegion获取对表单区域的引用。   


  Private Sub FormRegionShowing(ByVal sender As Object,ByVal e As System.EventArgs)处理MyBase.FormRegionShowing     


   newEmail = Me.OutlookItem  


    Dim text As String = Me.newEmail.Body.ToString  '错误


'或 错误Dim text As String = Me.newEmail.Body  "错误  Dim text As String = Me.newEmail.Body.ToString       
   结束子


如何重现:


1创建一个新项目Outlook2013或2016 VSTO3或4加载项目


2将表单区域添加到VSTO加载项项目。


3在Private Sub FormRegionShowing()中添加以下行


newEmail = Me.OutlookItem Dim text As String = Me.newEmail.Body.ToString 


4打开Outlook


5打开邮件


6 close mail


获取Msg Outlook  -  邮件的属性已更改














$



解决方案

您好AntiFascistAlways,



根据您的描述,由于信息较少,我们是无法重现您的问题,因此我建议您提供有关问题的更多信息,例如完整示例代码,屏幕截图和错误等,这些信息有助于我们重现并且
解决问题。



此外,如果你想设计一个Outlook表格区域,你可以参考下面的有用链接:


https://msdn.microsoft.com/en-us/library/bb157865.aspx?f=255&MSPPError= -2147217396
$


感谢你的朋友rstanding。


I am creating a new Outlook2013 or 2016 VSTO3 or 4 Add-in project:

  • Adding a form region to the VSTO Add-in project.
  • I added 2 strings of code inside of Private Sub FormRegionShowing() :

>newEmail = Me.OutlookItem >Dim text As String = Me.newEmail.Body.ToString 

After running I get an alert message from outlook saying: "The properties of the message have been changed" but the 2 lines of code above don’t change anything.

If I move the 2<sup>nd</sup> line outside of FormRegionShowing() then the warning message disappears.

Full Warning Message:

 'Occurs before the form region is displayed.     'Use Me.OutlookItem to get a reference to the current Outlook item.     'Use Me.OutlookFormRegion to get a reference to the form region.   

  Private Sub FormRegionShowing(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.FormRegionShowing      

   newEmail = Me.OutlookItem  

    Dim text As String = Me.newEmail.Body.ToString  'error

' or this error Dim text As String = Me.newEmail.Body  'error  Dim text As String = Me.newEmail.Body.ToString             End Sub

How to reproduce:

1 Create a new project Outlook2013 or 2016 VSTO3 or 4 Add-in project

2 Add form region to the VSTO Add-in project.

3 Add the following lines inside Private Sub FormRegionShowing()

newEmail = Me.OutlookItem Dim text As String = Me.newEmail.Body.ToString 

4 open Outlook

5 open Mail

6 close Mail

Get Msg Outlook  -- The properties of the message have been changed



解决方案

Hi AntiFascistAlways,

According to your description, since there is less information, we are not able to reproduce your issue, so I suggest that you could provide more information about issue, for example full sample code, screenshot and error etc., that will help us reproduce and resolve it.

In addition if you want to design an Outlook Form Region, you could refer to below helpful link:

https://msdn.microsoft.com/en-us/library/bb157865.aspx?f=255&MSPPError=-2147217396

Thanks for your understanding.


这篇关于错误Outlook加载项FormRegionShowing消息的属性已更改..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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