Questions tagged [docx-mailmerge]

56 questions
3
votes
2 answers

ImportError: cannot import name 'MailMerge' from 'mailmerge'

I am having this problem whereby I can not copy from __future__ import print_function from mailmerge import MailMerge from datetime import date I am getting --------------------------------------------------------------------------- ImportError …
rsc05
  • 3,626
  • 2
  • 36
  • 57
1
vote
1 answer

Grabbing multiple attachments with a specific file name in Google Appscript

Needing help with adding 'n' number of attachments. Code below: for(var i = 2; i<=lr; i++) { var Contact_Person = ss.getRange(i,4).getValue(); var PDFs = ss.getRange(i,6).getValue(); //The above i am grabbing…
1
vote
1 answer

How to increase the performance of Syncfusion ConvertToPDF method

I use the following method to generate a PDF document using MS Word Mail merge. The “PaymentPlanDetails” has 7050 records and its data model has 9 string fields, an int field, a decimal field and a DateTime field. private MemoryStream…
0
votes
1 answer

mismatch error while trying to split cells in a range

I'm trying to run a mailmerge and I want to delete all rows beside the header in each table if the last cell of that row is blank. Here is the line I'm getting mismatch error: If Split(.Cell(r, c).Range.Text, vbCr) = 0 Below is the sub: Sub…
Anh Le
  • 1
  • 1
0
votes
1 answer

Mailmerge: Error! Missing test condition query

Hi wonderful people of StackOverflow. I've been scratching my head at the below Mailmerge formula code for an hour of so now and can't seem to figure out why it would be throw up an error. Is anyone with an eagle-eye able to point out any syntax…
0
votes
0 answers

How to edit/rename mailmerge fields(tags) in docx file without having database that created this mailmerge fields? python docx-mailmerge==0.4.0

In my python django project I work with docx MailMerge package (docx-mailmerge==0.4.0) And I have specific tags in a docx files, but I did not create this docx files and those mailmerge tags, right now I have some tag that I want to edit, but I do…
0
votes
0 answers

Mail merge - Multiple Rows in base data need to be shown together

I've an Excel spreadsheet with the base data for a Word Mailmerge. Each policy is on a different line, however a client may have four lines. I want one letter to be sent to a client based on all of their policies in the data source. Is this…
DrewSmith
  • 47
  • 1
  • 6
0
votes
1 answer

How to use a word mail merge with a password protected Access file

I am trying to use Word mail merge to send emails and retrieve all the data like name and title from an Access database however, the database is password protected and I keep on getting errors saying the password is wrong even though it is the…
0
votes
0 answers

Opening an already mail merged docx file from Ms access using vba

I have a docx file that is using an output excel from a ms access (2007-2016 I believe) to do a mail merge. What I am trying to do is just open that docx file up with a button push from the access database (using vba code) which I can do, but it not…
0
votes
0 answers

How to automatically go to last record of mail merge Word file and save that record?

I have a Microsoft Excel file that updates with information from a form. A person fills out the form, a new row of data is added to the file. I created a Microsoft Word document to generate a summary of that data using the mail merge tool. It works…
0
votes
0 answers

problem of associating a data source associated with Word mail merge from a java application (OLE communication)

I'm working on a java application that interacts with Word through an OLE library (org.eclipse.swt.ole.win32) to merge documents (mail merge). the java method which makes it possible to merge has been working for several years without any particular…
jhm
  • 1
  • 1
0
votes
0 answers

Populate distinct field in mailmerge under same invoice

I'm have a mailmerge that will populate all records under the same invoice number for customer. I would like to place a summary of the dispute reason below it. I'm unable to find the right approach to it. Source Data in excel: Mailmerge code in…
0
votes
0 answers

Mail merge Excel to word document python

I am trying to mail merge an excel file into a docx file. My excel file looks something like this: student_number Student Barcode Grade Pin School 43253 Jon *4563* 2 4563 Midland 31242 …
0
votes
0 answers

Change font and size in database field

I'm trying to mailmerge from word referencing to excel as database. However, I'm not exactly sure how I can change the font and the size of the field. e.g. I would like to change the font of [Person First Name] to font Arial with size 8. Kindly…
0
votes
1 answer

How to add email body when mail merge from Word VBA?

I am trying to automate email from Word through mail merge. Private Sub Send_EmailUsingMaiIMerge_Click() Dim Wd_App As Word.Application Dim Wd_Doc As Word.Document Dim Wd_MailMerge As Word.MailMerge Dim Data_Path As String Dim Wd_MMFNs As…
1
2 3 4