Questions tagged [docx-mailmerge]

56 questions
0
votes
0 answers

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 String" after I added the value to merge field the…
0
votes
1 answer

docx MailMerge Not Closing Microsoft Word After using document.write()

I have a current script that fills out a template word doc using MailMerge. The issue I noticed is that after iterating through 15 rows/documents, the process works correctly, but in my Task Manager, there is 15 open idle Microsoft Word…
0
votes
1 answer

Are there docx-mailmerge character limits?

I'm creating report cards for a school. Each teacher submits a spreadsheet with the names, grade, letter grade and a comment for each student. Such as, John, 85, B, Good job!. In addition, there are spreadsheets from the homeroom teacher and advisor…
0
votes
0 answers

Opening a Mail Merge Word Document from an Access Database

I currently have a Microsoft Access Database (file format is 2007-2016) that we use to track open orders and print all the required documents. I have created a word document that pulls information from this database using MailMerge. This document…
0
votes
1 answer

Extract tags from DOCX using POI-TL

POI-TL replaces the tags inside DOCX but I can't find any API that can give me a list of tags. Does anyone have experience using POI-TL to achieve this? I already tried building my own code to find the tags but word transforms tags into multiple…
JavaGuy
  • 3
  • 3
0
votes
0 answers

Adjusting mailmerge code to run in the same sheet

i have develped a code with the help of Google API mailmerge LINK: https://developers.google.com/docs/api/samples/mail-merge It works great but the problem is it creates a different sheet for each row, how can i make it create the rows in the same…
0
votes
0 answers

Update sql server database tables using mail-merge feature of MS Word

Can we update the SQL Server Database tables using mail merge feature of MS Word in c#. If yes How can we do this ?
FIRE
  • 151
  • 12
0
votes
0 answers

performing mail merge docs using google api

i am trying to perform mail merge with google docs and sheets this is the link to my project. https://github.com/EyadZaeim/MDS however, i keep encountering this error
0
votes
1 answer

How do I advance to the NextRecord on Microsoft.Office.Interlop.Word Mailmerge with C#?

I have this method that "works", but only gives me one row of data. I used EPPlust to loop through the Excel file and calling the Word document template. The template is an 8.5 X 11 document with 21 labels. My goal is the fill the labels with…
0
votes
1 answer

How to calculate date in Word to add into Mail Merge?

Is it possible to calculate a date and then insert into a MS Word document? E.g. An excel sheet contains a date column (lets say 10-Jan-2020). I am using the same date to be inserted through mail merge and also I want to use the same date again with…
iskbaloch
  • 187
  • 11
0
votes
1 answer

Save each page as it's own document titled as a value from the data source

I have my document set up to automatically pull the data source for the mail merge. From there, I'd like to save each page as it's own document and set the file name to one of the mail merge values. Right now I do the mail merge and then go to…
0
votes
1 answer

How to Remove Mail Merge Field from .docx File in PHP?

Currently, I am using the following to replace Mail Merge fields in a docx file. This replaces mail merge fields «Address_1», «Address_2» etc. with a value from the database and outputs it a new document file. The issue I am encountering at the…
Arfan
  • 17
  • 6
0
votes
0 answers

word MailMerge (from MS Access data source) dynamic table

Mailmerge with Dynamic Table Hi there I have a long list of data in an Ms access which I need to mailmerge into letters to send to recipients. data source The challenge I am facing is that I need it to send only one email per unique "Name", but for…
olufemi
  • 13
  • 3
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
1 answer

Word mail merge errors in "by category"

Please see the attachments for the mail merge issue. The result expected by me should have been: But it turns out to be: I believe the error is caused by the comparison in the field codes (i.e. <>) but I couldn't figure out where the error is. If…
Tin Amaranth
  • 683
  • 2
  • 12
  • 23