Merge fields allow you to define a placeholder where pieces of dynamic information can be injected (e.g. Mandrill email templates, Office Word)
Questions tagged [mergefield]
72 questions
0
votes
1 answer
Using RTF Templates with mergefields as input for generating reports
I have a requirement to generate word documents from j2EE/java where the input would be a RTF template (.rtf document) having merge fields.
I have looked at docx4j which accepts only docx as input. RTFTemplate which requires a template engine(not…

Anton
- 141
- 1
- 3
- 4
0
votes
1 answer
Use a mergefield to import data from a text file (MS Word 2010)
I am using mail merge in MS Word 2010. Data comes from an Excel spreadsheet:
Last Name First Name Group
Smith Oliver F1
Jones Amelia B2
Taylor Emma …

patpdm
- 1
- 1
0
votes
1 answer
Docx4j - Replacing Word merge field with HTML content
I am trying to replace a Word merge field "test" with an HTML content :
String myText = "
Hello
"; using Docx4j. String myText = "Hello
"; try { …
Jenna SMITH
- 75
- 1
- 1
- 10
0
votes
1 answer
MS word 2013 Include picture - F9 does not refresh the pictures
I have this problem and have spent days googling for a solution with no success.
I am using the mailing to make several pages where its correspondent user picture is shown. Everything works fine to create it, for example, the code to show the…

Pathros
- 10,042
- 20
- 90
- 156
0
votes
1 answer
How to embedd Word 2007 document in ASP.NEt project
I have a neat class that is able to mergefields within a Word document based on a Datarow object containing the data I require to turn a Word 2007 docx template into a real Word document with the data embedded inside the Word document, and using…

Fandango68
- 4,461
- 4
- 39
- 74
0
votes
1 answer
Fill xml in pdf form using itextsharp in c#
I need to implement a method to merge fields in a PDF with forms created in Adobe Life Cycle.
I'll receive the template PDF and a XML to populate the PDF and need to return the new filled file.
The xml is something like this:

GNuno
- 51
- 4
- 11
0
votes
1 answer
Word 2010 Mail-Merge: Output text without trailing newline
I'm using a program that generates reports automatically using Word templates. In other words, I can't modify the code that preprocesses the text before read by the template.
That said, there are text entries that have a trailing newline and some…

clarity
- 368
- 1
- 4
- 14
0
votes
2 answers
How to Create and Insert a MergeField into a Word Document when Developing a AddIn Using VSTO
Now I can insert a text after the current cursor,using
Globals.ThisAddIn.Application.Selection.Range.Text = itm.Value;
I want to replace the text with a MergeField,but I don't know how to create a MergeField object using VSTO and how to insert it…

p_next
- 1
- 1
- 1
0
votes
1 answer
How to replace a section in a word template with multiple fields C#
I'm creating a C# application that fills the MergeFields defined on a MS Word document with data from an external Data Source.
I'm using the OpenXml SDK and everything works fine when replacing single fields.
What I want to do is, to have a section…

willvv
- 8,439
- 16
- 66
- 101
-1
votes
1 answer
Adding two Merge Field gives Syntax Error in Formula (MS Word)
I'm supposed to add two merge fields using formula and it's throwing syntax error
This is what i am trying to add
I've tried the bookmark thing
I've tried using ctrl+f9 for brackets
I've tried inserting merge fields using menu and manually using…

Saba Ali
- 57
- 1
- 2
-1
votes
1 answer
Inserting merge fields into a word document based on an Access Database
I have a complete Access database and a Word document, and I want to merge them using VBA through Word. Setting up the merge, I have the following:
Sub MergeTest
ActiveDocument.MailMerge.OpenDataSource Name:= _
…

user1996971
- 543
- 5
- 20
-1
votes
1 answer
MS Word MAILMERGE autonumbering for MERGEFIELD
I just learn how to use MAILMERGE in MS Word. I want to list my MERGEFIELD use alphabetic sequence and my code is like this :
{ SEQ list \* alphabetic }. { MERGEFIELD item1 }
{ SEQ list \* alphabetic }. { MERGEFIELD item2 }
{ SEQ list \* alphabetic…

Haryo Bergas
- 25
- 1
- 1
- 5