mailmerge

How to merge entirely different pages based on value of merge field

ε祈祈猫儿з 提交于 2021-02-08 09:37:11
问题 At my office we use documents with merge fields from Microsoft Word for a number of different functions. However, I can't find a way to merge entire pages based on the value of a merge field. For instance, there are different forms you have to use to notarize documents in different state. I want to set it up so that if the state chosen is MN, the document will generate the notary form for Minnesota, if the state chosen is NC, the document will generate the notary form for NC, etc. Is this

MS Word Mail Merge and Split Documents saving, Header and footer issue

六月ゝ 毕业季﹏ 提交于 2021-01-29 07:48:41
问题 I am using the below Macro to split the mail merged into separate documents. What I need is it to split into separate documents keeping the whole page including the header and footers and saving as in the first merged field on the page, which is the first piece of information on the merged letters. However, the macro runs only on one letter not the rest, and the format is completely incorrect. It changes the font, page layout and does not include the headers and footers. It also saves as 'Ref

Is PHPWord suitable for direct mail?

不羁岁月 提交于 2020-07-10 08:56:31
问题 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 fields. For each document, the application will search for the data in several databases, then create the custom documents. 回答1: found this http://phpword.readthedocs.io/en/latest/templates-processing.html Efficient but does not use native word merge

excel VBA to Automatically select Yes when prompted during mail merge

怎甘沉沦 提交于 2020-01-21 05:41:25
问题 I'd like the system to be as automated for my users as possible. Right now, I have code that runs when the user clicks a button. The code takes data with the intention of applying it to a word document via mail merge. Everything works as intended except there's always a message that pops up saying Opening this document will run the following SQL command: Select * FROM 'TAGS$' Data from your database will be placed in the document. Do you want to continue? I need to keep this as simple as

How to use VBA to say 'Yes' to any SQL prompts in word?

房东的猫 提交于 2020-01-15 15:44:08
问题 I'm using a macro, launched from a word document, which opens, executes, and closes a series of other documents, each of which contains a macro that executes a mail merge. The code works fine, but each time the new document is opened, I am given an SQL prompt, asking if I want to put the data into my document from the datasource. I can just say 'Yes' to all of these dialog boxes, but a) I would like to automate this to make it easier b) Other users might also use this document, and I don't

Mail Merge into word

你离开我真会死。 提交于 2020-01-02 05:34:48
问题 The Best way to create labels is using existing industry standard tools , such as Microsoft word. How do you execute this and set up the shipping labels ? I am unsure how to map merge fields against data grid view columns. This is the code I have so far: // Create a new empty document. DocumentModel document = new DocumentModel(); // Add document content. document.Sections.Add( new Section(document, new Paragraph(document, new Field(document, FieldType.MergeField, "FullName")))); // Save the

Compile ASPX in WinForms App

一个人想着一个人 提交于 2020-01-02 05:34:11
问题 I'm writing a WinForms application that sends email messages (like a mail merge). I'd like to use ASP.Net's rendering engine to render the HTML bodies of the messages. What's the simplest way to get the rendered output of a single ASPX page without the entire ASP.Net runtime? To make things harder, I'd prefer to compile the ASPX at runtime so that it can be modified without rebuilding the application. However, this is not a requirement; if it's too difficult, I'll give up on it. 回答1: Rick

Is it possible to write a word add-in or something similar to provide a custom mailmerge datasource?

强颜欢笑 提交于 2019-12-25 05:09:33
问题 I've a backend system which I want to use as the datasource for MS Word 2010 mailmerge. I've the idea that I should write a word add-in which provides the datasource and is communicating with my backend over webservices. Is it generally possible to provide a custom datasource with a word add in? Is there a besser solution? Is it possible to do this in C#? Where can I found moar informations about this? Thanks 回答1: The types of data source that Word's out-of-the-box Mailmerge feature can use