mailmerge

Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))

与世无争的帅哥 提交于 2019-11-29 08:20:06
I have a small C# Winforms Application that is using Word.Interop to Take a Single Mail Merge Document, copy each section, paste that section into it's own document, and save it individually. I keep (sometimes randomly) getting the error message: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) . I have tested my below code and when I use breakpoints, I never receive this message. However, if I let it run uninhibited, it seems to error out at my line oNewWord.ActiveDocument.Range(0, 0).Paste(); . What is even weirder, sometimes I get the Exception Message

MS Word, Import Table with Query Condition Based on Merge Field

房东的猫 提交于 2019-11-28 11:34:20
问题 I'm creating a compliance mailing for my organization, the mailing will include merge fields that identify the office location, physician, and SiteId. The mailing will also include a table of information that is dependent upon the particular SiteId. I'd like to use the import table function of MS word and set up a query that references a merged field (SiteId) so that the inserted tables populate the appropriate data for the particular site. I'm unable to do this. How can I set up this

Mailmerge dynamic hyperlink fields lost after save/reload of document - Word 2010

久未见 提交于 2019-11-28 09:28:17
问题 I have a problem where using dynamic hyperlinks in field codes works fine when I create a document, but when save and later reload it the links are replaced with text from the original recordset. The field code I am using is: { HYPERLINK { MERGEFIELD "Fieldname" } \* MERGEFORMAT } After saving then reloading the document this becomes similar to: { HYPERLINK "http://www.example.com" } I am merging to HTML email. I have been unable to get this to successfully work after saving. This is a

Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))

旧城冷巷雨未停 提交于 2019-11-28 01:55:30
问题 I have a small C# Winforms Application that is using Word.Interop to Take a Single Mail Merge Document, copy each section, paste that section into it's own document, and save it individually. I keep (sometimes randomly) getting the error message: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) . I have tested my below code and when I use breakpoints, I never receive this message. However, if I let it run uninhibited, it seems to error out at my line