在调用时使用来自数据库的查询填充.oft [英] Populate .oft using query from databasewhen called

查看:56
本文介绍了在调用时使用来自数据库的查询填充.oft的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Outlook 2013中创建了一个OFT文件,但是我想让它查询数据库,根据打开时提示的输入参数填充模板中的字段。


I have an OFT file that i recently created in Outlook 2013, but I would like to have it query a database to populate fields within the template based on a input parameter prompted at time of opening.

示例:

用户选择工具栏marco(或其他选项)打开模板(oft文件)

Users select toolbar marco (or other option) to open template (oft file)

宏提示用户输入ID(数据库查询中使用的信息)进行数据检索

Macro prompts user for ID (information used in database query) for data retrieval

数据填充在设置字段中(类似于mailmerge)

Data is populated in set fields (similar to mailmerge)

用户可以向电子邮件中添加其他数据,如联系人,日期等,并根据需要调整从数据库查询返回的数据(不应该,但为了以防万一)

Users can add additional data to email such as contacts, dates, etc and adjust data returned from database query if needed (should not be, but just in case)

然后用户发送电子邮件。

Users then send email.

提前感谢您的时间在这件事上。

Thank you in advance for your time in this matter.

迈克

推荐答案

嗨Mike,

感谢您访问我们的论坛。

Thanks for visiting our forum.

然后,我们主要关注Office客户端的一般问题。由于您的问题与开发涉及Outlook的问题更相关,我将把您的主题移到以下专用于Outlook的MSDN论坛:

Then here we mainly focus on general issues about Office client. Since your issue is more related to developing questions involving Outlook, I'll move your thread to the following dedicated MSDN forum for Outlook:

https://social.msdn.microsoft.com/Forums/en-US/home?forum=outlookdev

我们建议适当发布的原因是您将获得最合格的受访者群体,而定期阅读论坛的其他合作伙伴可以分享他们的知识或从您与我们的互动中学习。感谢您的理解。

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

最好的问候,

Yuki Sun

Best regards,
Yuki Sun

< a href ="https://social.msdn.microsoft.com/Forums/en-US/home?forum=outlookdev">


这篇关于在调用时使用来自数据库的查询填充.oft的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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