简体   繁体   English

MS Word:带查询的Mailmerge超链接使用MERGEFIELD获取URL字符串

[英]MS Word: Mailmerge hyperlinks with query get URL string with a MERGEFIELD

I'm trying to send an email merging one document (.docx) with a contacts database (via OleDB). 我正在尝试发送一封电子邮件(.docx)与通讯录数据库合并的电子邮件(通过OleDB)。 Using MS Word 2007, it seems easy (it works for easy things: name, address, ...) but I can't find how fill an query-get URLD string with a merge field inside an hyperlink. 使用MS Word 2007似乎很容易(它适用于简单的事情:名称,地址等),但是我找不到如何在超链接中的合并字段中填充查询得到的URLD字符串。

An hyperlink like: Click here 超级链接,例如:单击此处

I've tried the special/merge fields: 我已经尝试过特殊/合并字段:

{HYPERLINK "http://domain.com/test.php?contact={MERGEFIELD contactEmail}" \\o "Here"}

but it doesn't work, sometimes it merge only the first record and then send all the mails with the same address, I got this alternating the view with ALT+F9 . 但是它不起作用,有时它仅合并第一条记录,然后发送具有相同地址的所有邮件,我将其与ALT + F9交替显示。

This support doc doesn't work for me because I don't have the complete URL in my database for each contact, and I can't change the design of the table or add a view (it's from the CRM), I don't like to do it exporting the table and adding the field. 支持文档不适用于我,因为我的数据库中没有每个联系人的完整URL,并且我无法更改表的设计或添加视图(来自CRM),因此我无法我喜欢导出表并添加字段。

Any idea? 任何想法?

Thanks in advance, 提前致谢,

OK, I think that MS forgot something in MSWord. 好的,我认为MS忘记了MSWord中的某些功能。 In MS Publisher 2007 exists this functionality (called "Personalized hyperlinks") See at here to begin the mailmerge, then you can find an option to do that with an extra form (I didn't find in Word). 在MS Publisher 2007中,存在此功能(称为“个性化超链接”)。请参见此处以开始邮件合并,然后您可以找到一种使用附加格式执行此操作的选项(我在Word中找不到)。 I don't know if Word2010 has this option, but Publisher 2007 is OK for me. 我不知道Word2010是否具有此选项,但Publisher 2007对我来说还可以。

Thx. 谢谢。

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

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