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

Run-time Error 91 : Object variable or With block variable not set

I have 2 separate word documents with Mail Merge lists. And I have an excel workbook with 2 sheets. Based on the worksheet name & if the sheet is not empty, I need to send the mailmerge to that respective word document(s). When I try to execute this…
Dragon Warrior
  • 53
  • 1
  • 1
  • 12
2
votes
2 answers

Web-based document merge solution?

We are looking for a web-based document merge solution. Our application is a web-based project management tool built using Xataface - PHP on Windows IIS + mySQL. We have a function that allows the user to generate a status report in Microsoft…
rugcutter
  • 101
  • 1
  • 2
  • 8
2
votes
2 answers

Call MailMerge.OpenDataSource() Set Connection

I want to open a Word file and connect it to the 3rd table in an Excel document as data source for mailing. My main problem: how can I set the "Table3" to avoid opening this dialog box? Here my trials (all as comments behind #): $Word = New-Object…
2
votes
1 answer

Microsoft Word if statement with mergefield is not working

I am trying to implement IF statement with microsoft word (Microsoft.Office.Interop.Word dll) and c#. I have a template as below - and I am getting result like this - my code is like this Dictionary valueDic = new…
2
votes
1 answer

PowerShell Word Mail Merge Script

I have a script that used to work fine on older versions of Office but on 2010 is now failing to Mail Merge Documents correctly. The interesting thing is that if I load the mail merge document (by double clicking) it then tells me its a mail merge…
CharlesH
  • 186
  • 1
  • 5
2
votes
5 answers

Mail merge from Java

Does anyone have any experience with doing mail merge from Java on a word document? I need to support both doc and docx formats. I have heard of Apache POI and docx4j. However, from reading around I'm sure how good the word support is in POI. …
Mike Q
  • 22,839
  • 20
  • 87
  • 129
2
votes
1 answer

c# Interop.Word Join two WordDocument without saving to disk

I already can join two or more word documents from their file path. How can i join them without saving them to disk? string TemporaryPath = ""; string TemplatePath = ""; Object MissingValue; object OFalse = false; object OTrue = true; public…
Fraga
  • 1,361
  • 2
  • 15
  • 47
2
votes
3 answers

Word 2010 combining INCLUDEPICTURE and IF

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…
user3065343
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

How to tell Mail Merge document to use '!' Field Delimiter?

CODE: public void Print(string docLoc, string docSource) { try { Word.Application oWord = new Word.Application(); Word.Document oWrdDoc = new Word.Document(); …
Analytic Lunatic
  • 3,853
  • 22
  • 78
  • 120
2
votes
1 answer

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

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 {…
user2432995
  • 23
  • 1
  • 3
2
votes
1 answer

CustomXML In Powerpoint

I want to create a PowerPoint template. I want the template to have references to items like NAME and the like based on an external source. I know with WordprocessingML I can just make a reference to an XML file and supply an x-path, but I also hear…
diadem
  • 834
  • 2
  • 11
  • 24
2
votes
2 answers

Change value of Word MailMerge field using VBA

I have a document with MailMerge fields, however I do not want to use the whole datasource->mailmerge idea. Instead I am presenting a UserForm on Autonew() and asking the user to type the data into the fields. The reason is because this document is…
David
  • 159
  • 1
  • 3
  • 13
2
votes
2 answers

MS Word 2010 mail merge: dynamic url, same text

I have a MS word 2010 mail merge that needs a personal url as href and a generic title for all users i can send a url that displays as the full url, but i want a generic display text so users dont see all the parameters or a gigantic url i have…
Jay Rizzi
  • 4,196
  • 5
  • 42
  • 71
2
votes
3 answers

Automating Word Mailmerge not working as expected

I'm having a problem with some mail merge code that is supposed to produce letters within our application. I'm aware that this code is a bit rough at the moment, but we're in the "Get something working" phase before we tidy it up. Now the way this…
hulver
  • 57
  • 2
  • 8
2
votes
1 answer

Closing embedded object after editing

I'm having some trouble performing a mail merge using an embedded Word file. Essentially I'm trying to build a macro to: Open an embedded Word file (let's say the file is Object(2)) Connect the Export sheet to the word fie Preview the…
Gareth
  • 5,140
  • 5
  • 42
  • 73