使用邮件合并创建Word文档后有没有办法获得结果参考?
我正在使用 VSTO 2010 AddIn 进行 Word 邮件合并,并将 WdMailMergeDestination 设置为 wdSendToNewDocument。有没有办法获得对新创建的文档的引用,甚至找出创建每个文档时使用的数据行?
I'm using a VSTO 2010 AddIn to do a Word mail merge with WdMailMergeDestination being set to wdSendToNewDocument. Is there any way to get a reference to the newly created documents or even find out which data row was used to create each one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗨克里斯托弗我正在做同样的事情,到目前为止我已经成功地为 Outlook 创建了一个插件。这样,Word 邮件合并就完成了,Outlook 发件箱文件夹中的邮件在发送之前将附加任何类型的附件。
我正在大规模使用它,我一次谈论了 5000-7000 封邮件,而该插件让我失败了,因为它只附加到一些电子邮件,就像断断续续的一样(我的猜测是该插件无法处理重型)。所以现在我将通过捕获单词中的邮件合并对象来进一步研究解决方案。 (顺便说一句,我正在使用我正在开发的2007年应该也没有问题2010年)
到目前为止,我可以向您推荐我设法挖掘的这篇文章,如果您找到了解决方案,请分享tks。
http://support.microsoft.com/default.aspx?scid =kb;en-us;301659
PS:我知道有人在商业上出售这种软件。但最好是自制的!
Hi Christopher i am working on the same thing and so far i have managed to create an add-in for the outlook. So the Word mail merge completes and the mail in the Outlook outbox folder, right before being sent will attach the attachment of any type.
I am using this for mass scale i am talking about 5000-7000 mails at one go, and the add-in failed me, by attaching to only some emails its like on and off (my guess is the add-in not able to handle the heavy duty). So now i am going a bit further in to the solution by capturing the mailmerge object in the word. (btw i am using i am developing for 2007 should be no problem for 2010 as well)
So far i can suggest you this article that i managed to dig if you have a found a solution please do share tks.
http://support.microsoft.com/default.aspx?scid=kb;en-us;301659
P.S: I know that there are people selling this kind of software commercially.But its best if homebrewed!