mailmerge

Prevent error text appearing in Mail Merge when there is no image to display

给你一囗甜甜゛ 提交于 2019-12-12 02:57:43
问题 I have a document that uses mail merge to display images that are retrieved as URLs from a spreadsheet pointing to the image and the code works well. { INCLUDEPICTURE "{ IF TRUE { MERGEFIELD my_photo_variable_name} }" \d } The issue I have is that when there is no image URL for the current mail merge, an error message is displayed. Error! Filename not specified. I am trying to engineer the code so that it just leaves the mail merge field blank like it does for text fields rather than display

State of CheckBox can no more be checked after mail merge

Deadly 提交于 2019-12-12 02:56:40
问题 I create a mail merge with word automation. In my template file I have checkboxes which are set to checked or unchecked state through the following code: {IF {MERGEFIELD fieldName}="y" [checked checkbox] [unchecked checkbox]} where [checked checkbox] and [unchecked checkbox] are Check Box Content Controls with the corresponding check-state. This works fine so far. However in the output document of the mail merge, the checkboxes are no more checkable. It seems that the Check Box Content

MailMerge: From Excel to Word C#

五迷三道 提交于 2019-12-11 15:43:58
问题 I'm currently facing a problem regarding the MailMerge functionality of MS Word. I had to rewrite an old VBA Application into C#. I'm practically done with that. New Application works fine. Except for one PopUp that I cannot get rid of. So I have been looking around on the web for the past 2 days because our clients don't want that pop up as it hasn't been there in the old application. However I couldn't find a proper solution for this. Except a few people mentioning that probably the

VBA - Runtime Error 438

◇◆丶佛笑我妖孽 提交于 2019-12-11 09:40:41
问题 I am using VBA to automate mailmerge for 3 cases : Please see my code as below : (1) I need to generate certificates based on each worksheet. (2) Certificate name should be "Last Thursday" & "AAA" / "BBB" / "CCC" (based on worksheet) respectively. Eg. 25062015AAA.docx (for sheet1), 25062015BBB.docx (for sheet2), and 25062015CCC.docx (for sheet3) respectively. However currently, my code is either saving the 1st generated mailmerge under different names. Or it throws a Runtime Error: 438 -

MailMerge Excel to Word individual files

非 Y 不嫁゛ 提交于 2019-12-11 06:35:41
问题 I am trying to create the following: In Excel data is stored to create a mailmerge with output in individual pdf files, with file name 'Letter + name' from data. Individual files needs to be created with a button in Excel 'creating letters'. I am almost there, the only problem I have is that I have the individual pdf files created but all with the same data as per row 1. How can I create the individual files with each file with separate data? Sub RunMailMerge() Dim wdOutputName, wdInputName,

MS Word VBA - Replace text with matching Mail Merge Field

六月ゝ 毕业季﹏ 提交于 2019-12-11 06:05:07
问题 I would like to create a macro in MS Word that when run searches the document for text that appears in the body of the document that matches the mail merge field name. Once identified it would change the text in the document to the actual matching mail merge field name. For example, if there was a mail merge field named "project_date" and in the Word document there was the text "project_date" the macro would turn the text into the actual mail merge field "project_date". Ideally, the macro

VBA MS Word - Insert all mail merge fields into Word doc at once

房东的猫 提交于 2019-12-11 05:37:36
问题 Currently MS Word only allows for the insertion of 1 mail merge field at a time. I am looking for a VBA code that would allow me to insert all merge fields into a Word doc at once and/or a code that would input a mail merge field where the name of the same mail merge text appears in the doc. For the second possibility I have found the following code that allows the user to convert text that matches a mail merge name into a mail merge field one at a time ( http://apsona.com/blog/how-to-quickly

Word 2010 combining INCLUDEPICTURE and IF

放肆的年华 提交于 2019-12-11 01:37:41
问题 Using MS Word 2010 I am trying to place an INCLUDEPICTURE field into a block of an IF statement. While both the IF statement and the INCLUDEPICTURE work correctly separate, they do not work in combination. IF Statement: { IF { MERGEFIELD condition \* MERGEFORMAT } = "expression" "true" "false" \* MERGEFORMAT } This works correctly. INCLUDEPICTURE: { INCLUDEPICTURE "picture.png" } This works correctly, too. Combination of the two: { IF { MERGEFIELD condition \* MERGEFORMAT } = "expression" "{

Mail/Word Merge in .NET? [closed]

ぃ、小莉子 提交于 2019-12-10 11:47:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I would like to do a merge between a collection of information I have in memory and a word document. I have done this quite easily

How do you mail merge a word document in c#

拈花ヽ惹草 提交于 2019-12-09 12:40:35
问题 What I'm trying to achieve In my c# application I would like to generate a report (word document) from data in my application, I figured that the best way to do this would be to perform something like a mail merge using the data source from my application. What I've tried I tried following this Mail Merge into word however this uses GemBox which you need to pay for I have tried using Microsoft.Office.Interop.Word however I fell short when I didn't know how to reference the saved template