75 questions
-1
votes
1
answer
52
views
Error unknown op code for conditional - What am I missing?
I have tried for hours to debug this condition in Word, and I simply cannot see what the error is. Is there a space or something that should not be there?
I am out of ideas what to look for.
I have ...
1
vote
2
answers
93
views
Format part of a Mergefield conditional text result
e.g. in Word document, say there is a section like:
{ IF { MERGEFIELD SomeCondition } = "True" "hello there world" "" }
where { } are the special word merge field parts,...
0
votes
1
answer
509
views
MERGEFIELD for Values with Superscript for dates Microsoft Word
Having 1{sup|er} janvier 2012 for the MergeField Microsoft Word for Email.
The format that we have is fmDD"{sup|er}" month YYYY
This is the format that we currently use
and wondering if ...
0
votes
1
answer
332
views
How to get the Table inside a MS Word bookmark and add multiple rows based on its Mergefield cells using docx4j?
Till now am able to parse a docx file using docx4j and find the bookmarks and all the tables in a docx file using below code:
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new ...
-1
votes
1
answer
1k
views
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 ...
0
votes
0
answers
533
views
How to keep leading spaces in merge fields (MS Word)
I have problem with merge field in word document , i created merge field like this:
{ MERGEFIELD string_data }
I try to add some text to the merge field with leading space, example: " Test ...
1
vote
1
answer
762
views
Merge fields won't show on visualforce page
I just started learning Apex recently, and there's still a lot of topics that are hard for me to navigate at this time. I've searched everywhere for a solution that works, but I still haven't been ...
1
vote
0
answers
1k
views
MS Word INCLUDEPICTURE + MERGEFIELD Quick Parts don't update picture
I'm experiencing an issue with MS Word Quick Parts INCLUDEPICTURE and MERGEFIELD.
I have a Word document which is linked to Excel worksheet "Data" though Mail Merge.
This is the structure of ...
0
votes
1
answer
362
views
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 ...
0
votes
1
answer
299
views
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?...
1
vote
0
answers
112
views
INCLUDEPICTURE use an alternate jpg if MERGEFIELD "filename".jpg is not valid
I keep track of hikes we do in an EXCEL spreadsheet. I use WORD to create journal pages using a lot of MERGEFIELDS. I have clean maps of parks. After we do a hike, I use an editor to draw a route on ...
0
votes
1
answer
162
views
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 }: {...
0
votes
1
answer
161
views
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 ...
0
votes
0
answers
677
views
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 ...
0
votes
2
answers
5k
views
How to put a line break in between each item in a merge field (for formatting purposes)
I have a Mail Merge attached to a SQL query that I need to reformat. The 'action_name' field was inserted and works properly. [EDIT: To clarify, all of the data appears under one mergefield name ...
1
vote
0
answers
830
views
Openxmlsdk: Replace MergeField by html text
I'm using DocumentFormat.OpenXml to replace merge fields in my template docx file.
Step 1, I write method to find merge field
var instructionRegEx = new Regex(@"[\w]*\sMERGEFIELD\s+(?<...
1
vote
1
answer
3k
views
How do I insert a mergefield into an If..else statement in VBA using Word MailMerge?
The below macro will input the field heading followed by the field value. The If statement should check the value of the field and if its greater than 30 the actual value is given, otherwise a zero.
...
4
votes
2
answers
36k
views
Word - How to stick text to the bottom of page
https://SURU.tinytake.com/sf/MTQxMTgzOV81MDc2MDI2
I want to stick some text of the bottom of the page, like on the screen, just before footer always. When there is text (from mergefield), next should ...
0
votes
1
answer
997
views
Syncfusion DocIO Replace Text with merge Field
I have a whole bunch of document which have a plain text place marker like ~{fieldToBeReplaced} and I want it to be replaced with a Merge field.
I have the following code which kind of inserts the ...
0
votes
2
answers
1k
views
Word Field "Syntax Error"
In a word file if have a field looking like:
{ = { IF "${COSTS}" = "" 0 "${COSTS}" } \# "#.0000" }
-> That gives my a Syntax Error!
However the following works fine:
{ = { IF "100" = "" 0 "100" } \#...
-1
votes
1
answer
770
views
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....
0
votes
1
answer
319
views
Different name in mergefield
I have a Word document with one mergeField who has name "NBJ"
I open document.xml and I found
<w:instrText xml:space="preserve"> MERGEFIELD NB</w:instrText>
The document works fine, but ...
0
votes
1
answer
402
views
VBA Word format mergefield
I have a fieldfunction that formats a given number (price) from an excel table.
i.e.:
Fieldname = FieldName & " \# #.##0,00 USD"
It works, but if the value is less than a thousand, the hashes ...
1
vote
2
answers
2k
views
Mail Merging Photo ID's in Word 2010/2013
I've been spending a number of days on this issue, and I would appreciate if someone can help.
I've got an Excel sheet of data fields, with a field containing the paths of photos that I would like to ...
1
vote
1
answer
138
views
Microsoft Word mergefield token polish currency formatting
I want to Format number from 1,234.25 to 1 234,25. I tried below mergefield formatting but it did not gave the expected result {MergeField token \# "# ###,##"}. I have been googling whole day but no ...