Questions tagged [mailmerge]

A software function which provides the ability to create multiple (and potentially large numbers of) documents from a single template form and a structured data source.

Mail merge is a software function which provides the ability to create multiple (and potentially large numbers of) documents from a single template form and a structured data source. Often these documents are letters and/or labels to be sent to a number of recipients (hence the term).

It is expected that questions about mail merging relate to programming in some way. You should tag your question with the programming language or technology you are using to perform the mail merge.

Related Tags:

Links:

707 questions
3
votes
1 answer

MailMerge #foreach list of strings using Aspose.Words

I'm currently making a MailMerge file and want to show a list of strings. In the past I've used a list of objects (for example Customer) and was able to have something like this in the Word-doc: {{ #foreach Customers }} {{Name}} {{Address}} {{…
Kevin Cruijssen
  • 9,153
  • 9
  • 61
  • 135
3
votes
2 answers

Add CC and BCC with Mail Merge

I am trying to add the cc function to a mail merge. In other words, I not only need to personalize the emails to different email addresses. I would also like each email to be include a CC that shows the same email to multiple recipients. Example:…
3
votes
1 answer

How to replace text/Merge field in Ms word with docx4j

I am trying to replace text or merge field from word document. I found out that I could use docx4j for this purpose. String docxFile = "C:/Users/admin/Desktop/HelloWorld.docx"; WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage …
Sujal
  • 671
  • 1
  • 16
  • 34
3
votes
2 answers

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

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:…
Analytic Lunatic
  • 3,853
  • 22
  • 78
  • 120
3
votes
1 answer

Program freezes at oWord.Documents.Open(oTemplatePath)?

I have put together a simple C# Winforms Application that queries AS400 data based on user criteria and returns the results in a ListView Control. On Button_Click() I then store the Headers and Data in a .txt file. Below I am trying to use that .txt…
Analytic Lunatic
  • 3,853
  • 22
  • 78
  • 120
3
votes
2 answers

copying openXML image from one document to another

We have conditional Footers that INCLUDETEXT based on the client: IF $CLIENT = "CLIENT1" "{INCLUDETEXT "CLIENT1HEADER.DOCX"}" "" Depending on our document, there could be a varying amount of IF/ELSE, and these all work correctly for merging the…
Stuart.Sklinar
  • 3,683
  • 4
  • 35
  • 89
3
votes
1 answer

How to add data into a Merge Field

I would like to automate printing invoices from a Word Template. I think I have the logic down but I just don't know the right way of coding it. Here is my current code Selection wrdSelection; MailMerge wrdMailMerge; MailMergeFields…
John Ernest Guadalupe
  • 6,379
  • 11
  • 38
  • 71
3
votes
1 answer

.net textbox with user added fields

I would like to create a control class that would allow the user to type text like a normal text box. However, it should have a "mail merge field" functionality that would allow the user to insert a field from a list. This field would then be…
John Steed
  • 599
  • 1
  • 12
  • 31
3
votes
1 answer

Mailmerge using OpenOffice

I'm currently trying to do a mailmerge, using C# and OpenOffice. I have a list of destanatary in my DB. I would like this to be possible : the user edit an OO document, put fields like "name" "adresse" "city" and some standard text (e.g. :…
Clement Herreman
  • 10,274
  • 4
  • 35
  • 57
3
votes
2 answers

excel VBA to Automatically select Yes when prompted during mail merge

I'd like the system to be as automated for my users as possible. Right now, I have code that runs when the user clicks a button. The code takes data with the intention of applying it to a word document via mail merge. Everything works as intended…
Ashton Sheets
  • 513
  • 6
  • 13
  • 21
2
votes
1 answer

docs_mail_merg Request for Access Issue

Please review my Git Hub response. I have also attached my Python code to this post. from __future__ import print_function import time from googleapiclient.discovery import build from googleapiclient.errors import HttpError from google.oauth2…
2
votes
1 answer

How to keep the data new lines \n in google script email?

I am trying to modify a script by Martin Hawksey I am trying to get one of the columns to do line skips and while the Google sheet is formatted, the email its-self does not retain that format. For example, if the cell looks like col monty, …
S C
  • 33
  • 3
2
votes
0 answers

Mail Merge Word Source in relative path

I'm newbie in VBA (few days) so give me some chance ;-) What I have: 3 files in one folder. ST.xlsm - with macros; vessel.xlsx - with data for mail merge; Cert QQ.docx - with mail merge fields already linked with vessel.xlsx; The path to this…
2
votes
1 answer

Mail merge: How can I format indiviidual fields within "database" field

For a mail merge in Microsoft Word from data in Microsoft Excel, I have written a DATABASE field that successfully adds all of the fields I want and dynamically changes for each mail merge record ("many to one"). I have then tried to format the…
ChrisC27
  • 23
  • 2
2
votes
2 answers

Parsing a string for mail merging

I am working on a C# project and let's assume I have a string containing something like this: string content = "[IF FullName = 'Bob Smith']Hello my friend"; content += "[ELSEIF TotalPurchases > 1000]Dear valued customer"; content += "[ELSE]Dear…
desautelsj
  • 3,587
  • 4
  • 37
  • 55
1 2
3
47 48