简体   繁体   English

如何以编程方式刷新 Outlook 邮件中用户定义的表单字段

[英]How to programmatically refresh user defined form fields in Outlook mail

I am capturing data from Outlook mail with user defined form fields.我正在使用用户定义的表单字段从 Outlook 邮件中捕获数据。

However certain form fields especially with validation is not showing correct values但是,某些表单字段(尤其是经过验证的表单字段)未显示正确的值

eg timeline field has validation as Receivedtime + estimate though mostly it shows correct value sometimes timeline field does not show any values even if receivedtime field and estimate field has value in it.例如,时间线字段已验证为 Receivedtime + estimate 尽管大多数情况下它显示正确的值有时时间线字段不显示任何值,即使 receivedtime 字段和估计字段中有值。

If I open and close the mail manually the field refreshes and shows correct data.如果我手动打开和关闭邮件,该字段会刷新并显示正确的数据。 This makes me feel the fields are not updated automatically.这让我觉得字段不会自动更新。

Is there any way to refresh the form field so that it can show updated data?有什么方法可以刷新表单域,以便它可以显示更新的数据?

You can also try你也可以试试

mailobject.userproperties.find("formfieldname").repaint

The repaint method will update the screen similar to refresh method. repaint 方法将更新屏幕,类似于 refresh 方法。 That should work for you.那应该适合你。

I have found a solution for this question in another forum: Link to the answer: answer我在另一个论坛找到了这个问题的解决方案:链接到答案: answer

ie IE

SendKeys "{F5}", True发送键“{F5}”,真

This works for me这对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM