Questions tagged [docx-mailmerge]

56 questions
0
votes
2 answers

Is there any solution to save the space when use the docx-mailmerage?

I am using the Python docx-mailmerge library to create a docx. But something is not like my hope. My code: from mailmerge import MailMerge template='example.docx' document_1 = MailMerge(template) document_1.merge(misscount='>>> CSS Network…
sky
  • 1
  • 1
0
votes
1 answer

Mail merge word docx in Azure app service

In an App Service running on Azure I need to replace mail merge fields in a word/docx-document with content. As I understand interop can't be used because it needs word to be installed. So how do I replace mail merge fields on Azure in a c# app…
Sam
  • 28,421
  • 49
  • 167
  • 247
0
votes
1 answer

Add new row for each duplicate in word doc using Python and Mailmerge

Good morning All, I wrote a script that populates a word document letter with multiple fields (ship to#, serial#, etc.) and creates a new word document for each row in my address list which contains the ship to#, serial# and customer name. My code…
0
votes
1 answer

How to copy a table into another table in the same word file using python?

Consider there are two tables in a MS docx file. First Table with X rows and Y columns and second table with M rows and N columns in the same MS docxfile. Now i want to copy complete second table along with its contents to one of cell (say cell…
0
votes
1 answer

How to add paragraph between mergefields in word mailmerge

I want to be able to add an automatic paragraph between mergefields in mailmerge. The words of the merge fields are written together with no space between them. how do I format it in this way?
firmphem
  • 39
  • 7
0
votes
1 answer

How to remove the extra page at the end of a word document which created during mail merge

I have written a piece of code to create a word document by mail merge using Syncfusion (Assembly Syncfusion.DocIO.Portable, Version=17.1200.0.50,), Angular 7+ and .NET Core. Please see the code below. private MemoryStream…
0
votes
1 answer

How to create a word document using a python tkinter executable?

I am trying to create a python tkinter executable that displays information from an Oracle database and can also export that information into a MS Word (.docx) document. It also does the same with Excel. Currently, whenever I run the script through…
0
votes
0 answers

Change percentage formats based on value

I'm currently working on building some reports and need help getting a percentage format to display correctly in the MS Word mail merge I am doing. There are two different ways the percentages need to be formatted. The person can either have a 100%…
0
votes
1 answer

Why are MailMerge objects unable to be converted to Unicode? Is there a reliable way to print templated docs in Python?

I am trying to read a text file which is formatted like a spreadsheet into a list, and then use the parameters from said columns as merge fields and insert them into a template word document using Python. However, I get a TypeError saying, "Objects…
0
votes
1 answer

Skip MS Word Mail Merge if datasource has no records

i currently have 6 mail merge templates that i execute via the following vbs. this opens each file in the root folder and runs the mailmerge, VBS Set fs = CreateObject("Scripting.FileSystemObject") Set rootFolder =…
lookslikeanevo
  • 566
  • 1
  • 5
  • 14
0
votes
2 answers

How do I get a python dictionary into a document merge as kwargs with docx-mailmerge

So I've got this dictionary mydict = {'name': 'Theo', 'age': '39', 'gender': 'male', 'eyecolor': 'brown'} and I use docx-mailmerge to merge this data into a word document. template = "myworddoc.docx" newdoc = "mergeddoc.docx" document =…
tvdsluijs
  • 127
  • 11
0
votes
1 answer

VBA excel rightfax

Currently I have a process in Excel that a user clicks a specific command and then takes the data from Excel and creates a mailmerge in Word. I then want it to the file(s) via RightFax, but I am having trouble at the Set oNewFax, when stepping…
EvilMorty
  • 15
  • 3
0
votes
2 answers

C# OpenXML Mail Merge mergeformat

I am using OpenXML to handle a mailmerge. I am feeding in data from a json file to merge with my document. I have this working great, but then I need to take in the formatting that is described in the MERGEFORMAT, as it doesn't look like OpenXML is…
David
  • 214
  • 3
  • 15
0
votes
1 answer

Is PHPWord suitable for direct mail?

Is PHPWord suitable for direct mail? (also named Mail Merge in MS Office Word) Here is the process I want to automat: .docx documents are provided to the application. They are formatted for direct mail with fixed parts and a collection of merge…
pat-och
  • 345
  • 3
  • 17
0
votes
2 answers

VBA Table in Merged Letter

I have an Excel Sheet with a lot of customer Data. All customers have common data (address, name etc.) that I implemented as simple mergefields. Some Customers have multiple Datasets that should be added as a Table at the end of the merged…