Questions tagged [mergefield]

Merge fields allow you to define a placeholder where pieces of dynamic information can be injected (e.g. Mandrill email templates, Office Word)

72 questions
0
votes
0 answers

How to properly indent in Word merge template?

I have a Word merge template that currently is not indenting properly when a field is too long. Below is an example of the field codes: Gift: {MERGEFIELD Main_Name} - {MERGEFIELD Main_Amount} When this is used, it will for example display like…
jwalls91
  • 341
  • 1
  • 5
  • 14
0
votes
0 answers

Mergefield in Word table with tabs and return characters

I have a Word Document that is made up of tables, rows, columns, cells. It pulls data using Mergefield, during generation of the document. I want a row of references, with the ability to reduce line returns by having tabs between the reference name…
Edward
  • 864
  • 1
  • 7
  • 29
0
votes
1 answer

How can I read a mergefield content in table cell on a docx file using C# and OpenXml

I have to automatically verify the content of tables in multiple docx filled by another software, some cells contains mergefield text type and because of that I can not access to the text in these cells. the code I am attaching here is a code that…
Imyna
  • 11
  • 3
0
votes
0 answers

Word template from dynamics crm change date format merge field XML mapping pane

I was wondering if someone know if there is a way to change the date format for a field pulled through from Dynamics 365 CRM in a word template. Basically, I have a date field (via developer, XML Mapping Pane tab) looks like DD-MM-YYYY…
hii
  • 77
  • 6
0
votes
0 answers

Dynamic hyperlink with mergefield possible?

I've tried several guides, but i haven't really found that any of them fit my purpose. The problem seems simple enough, i want to create a dynamic link based on a variable. I've tried inserting a Hyperlink with temp text and link, replacing the text…
Amby95
  • 67
  • 6
0
votes
1 answer

Conditional formatting on mergefield - it just prints the code to the output instead rendering

I inserted a merge field into my MS Word file like below: In the output, it is seen like below: So it doesn't render the code (if statement) but prints it out to the output. Why and how can I fix it? Thanks. Edit: note that the curly paranthesis…
0
votes
1 answer

Replace() inside a query for MSWord OpenDatasource using mailmerge with VBA

I have a field in a database, ending with :. My idea was to use { INCLUDEPICTURE "pathname{MERGEFIELD f1}.jpg", having stored previously the images' names in a folder with the names of the field values. However, I cannot name a file with a :…
Mister Equis
  • 141
  • 8
0
votes
0 answers

MS Word mail merge: A field calculation error occurred in record #

The expected outcome: 1: Amy 2: Bob 3: Carol 4: Dan 5: Eva 6: Eva 7: Fiona That's why I made use of "{ MERGESEQ }" to have every three records as a section. But it appears to be a calculation error in mail merging every record.
Tin Amaranth
  • 683
  • 2
  • 12
  • 23
0
votes
1 answer

MS Word mail merge: organise every nth record?

The Excel file has seven records (rows). I would like to organise every three records together. Yet, the following code returns a calculation error. { IF { =MOD({MERGESEQ},3) = 0} "{ MERGESEQ }: { MERGEFIELD _record}" "" } How can I fix the error?…
Tin Amaranth
  • 683
  • 2
  • 12
  • 23
0
votes
2 answers

How to fill a word document using Visual Basic / Visual C# in ASP.NET

I'm looking for options to fill a Word Document from either Visual Basic, or Visual C#. I'm currently using merge fields, and the code below to fill specific fields in a Word Document, but now I've run into a situation where I need tabular data…
Michael Armstrong
  • 371
  • 1
  • 5
  • 16
0
votes
0 answers

Update value of MERGEFIELDS in Word with VBA

I need to download a word document and edit the fields it contains to generate a final document with the input data from a form. The word document contains lot of MERGEFIELD and conditionals that I need to update with new values. I have tried to…
blfuentes
  • 2,731
  • 5
  • 44
  • 72
0
votes
1 answer

How do I run a mail merge but leave certain mergefields "unprocessed" i.e. don't remove certain mergefields conditionally

Our doc preparation team uses word templates and mail merges them from a database. However, we would like certain mergefields to be ignored so that they can be processed later from another data source. In this basic example below the word mail…
GavKilbride
  • 1,409
  • 15
  • 19
0
votes
1 answer

Is Apache POI supports replacing merge fields in docx?

To replace ms word merge-fields with values with apache-poi both in paragraphs and tables with multiple columns. As docx4j provides the function to replace merge-fields, is there any equivalent function by apache poi. Since I am using some custom…
S R
  • 35
  • 7
0
votes
0 answers

Removing white space from MERGEFIELD in word doc

I have created word doc with merge fields. Merge fields in word doc would look like this: { MERGEFIELD TestValue }. What I need to do is to remove the white space at the beginning and end of the field. So it should look like this: {MERGEFIELD…
0
votes
1 answer

Change MergeField to text only

I need to replace text into MergeField and do it simply text. I found question on the topic. It works for me. This code changes the text, but leaves the field as MergeField. And other question that change MergeField to text. But if there are several…
user11563179