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
2
votes
1 answer

Access / Word 2010 VBA Mail Merge Tries to Open [Foldername].mdb Instead of ACCDB Source

We are attempting to automate a mail merge process from within Access - upon clicking a button, VBA runs that specifies the current database (an accdb) as the data source and runs SQL, per the code below: 'Set up Word Dim objWord As Object Set…
WaideWalker
  • 33
  • 1
  • 5
2
votes
4 answers

How to split a mail merge and save files with a merge field as the name

I have a bunch of mail merge templates setup, when I merge the documents I want to split the results into separate files each one with a name based on the merge field “FileNumber”. The code I have currently is: Sub splitter() ' Based on a macro by…
Hybrid
  • 576
  • 3
  • 6
  • 10
2
votes
1 answer

Delete Text and Tables in Word after their creation with VBA

I have some issues programming a mail merge because every content created by my code has to be deleted in order to be not in the way for the next letter in the merging process. So I wrote a test Macro just to create some tables and delete them. Here…
jakob-r
  • 6,824
  • 3
  • 29
  • 47
2
votes
1 answer

How do I programmatically merge data in DevExpress RichEditControl?

I want to allow users to select from a list of predefined templates. When a template is selected, the RichEditControl (REC) displays a document formatted according to the selected template, with fields already merged. (The user never sees the…
RobC
  • 1,303
  • 3
  • 15
  • 32
2
votes
2 answers

Aspose.Words - MailMerge images

I am trying to loop through a Dataset, creating a page per item using Aspose.Words Mail-Merge functionality. The below code is looping through a Dataset - and passing some values to the Mail-Merge Execute function. var blankDocument = new…
tcarter2005
  • 597
  • 3
  • 12
  • 19
2
votes
2 answers

CRM 2011 Mail merge templates

I am creating a mail merge template in CRM 2011 and I need to pass a list of related entities to the entity that is being merged. For example, if I am merging records of an entity A which has a relationship to entity B, I wanted to know if there is…
user1081934
  • 151
  • 4
  • 14
2
votes
2 answers

Inputting data from a dbgrid into a word mail merge

I'm wanting to create a mail marge for a letter inputting different names and address on each. I've used Microsoft example as a base point http://support.microsoft.com/kb/229310 and i've customized it to how i like. But my problem arises when trying…
captiv
  • 107
  • 2
  • 9
1
vote
1 answer

Datasource for Mailmerge in Word2010 lost if called from Access-VBA

I have a problem migrating from Office2007 to Office2010 (and WXP -> W7). I'm using an Access program to create a CSV file that is used as a datasource for mailmerging. After creating the CSV my program creates a new word document from a template…
okrumnow
  • 2,346
  • 23
  • 39
1
vote
3 answers

Generating a .docx from a .dotx using merge (SimpleField) fields

So, first off here's my code to open the dotx and create a new docx copy (of which the copy is then modified). Cut for brevity, but essentially takes 3 params a data table (to make it usable by legacy systems), the UNC path as a string to a…
Paul Aldred-Bann
  • 5,840
  • 4
  • 36
  • 55
1
vote
2 answers

Display/Render RTF doc in browser display using html textarea or something similar

My web application has an feature wherein preformatted RTF documents are used as templates and the user can select the source of data and then merge with the RTF documents templates to create merged RTF files. The RTF templates have placeholders…
javauser
  • 91
  • 4
  • 11
1
vote
3 answers

Mail Merge (Excel to Word) using C#

I was wondering if anybody knew how to do a mail merge using an Excel file as a datasource, to fill in fields on a Word template? I wish to use the interop for Word if i could...but am having a few difficulties finding code for this. Does anybody…
yeahumok
  • 2,940
  • 19
  • 52
  • 63
1
vote
0 answers

Using R to mail merge a word document with text and image placeholders

In Word, you can prepare your doc with a Text_placeholder and Image_placeholder and effectively do a mail merge which replaces the text (as in all mail merges) but also iteratively embeds images at the image placeholder. Is there a way to…
Ndharwood
  • 123
  • 3
  • 11
1
vote
1 answer

Convert Word Mail Merge documents from 2003 to 2010 format

I need to convert about 100 mail merge documents from 2003 to 2010 format(.doc to .docx). The trouble I am having is that in order to convert the documents I need to open them. But some of them won't open because I don't have the correct header…
Gage
  • 7,365
  • 9
  • 47
  • 77
1
vote
1 answer

How can I mailmerge for each row of Google Sheets document to a Slides template (mail merge) using Apps Script if cell match?

I created a spreadsheet that I used as checking in and checking out employees with QR Code and Google Forms. the script works and when I start it it also generates the google slides including the Qr code as an image. My problem is that when I start…
1
vote
1 answer

How can I automatically insert images for each row of Google Sheets document to a Slides template (mail merge) using Apps Script?

I want that Apps Script to automatically generate a new set of slides using data from a Sheets document which has rows of the different information I want inserted into a Slides template replacing the placeholder tags. I want it to do it instantly…