mailmerge

Automating Word Mailmerge not working as expected

I'm having a problem with some mail merge code that is supposed to produce letters within our application. I'm aware that this code is a bit rough at the moment, but we're in the "Get something working" phase before we tidy it up. Now the way this is supposed to work, and the way it works when we do it manually, is we have a file (the f...

How to do mail merge on top of a PDF?

I often get a PDF from our designer (built in Adobe InDesign) which is supposed to be sent out to thousands of people. I've got the list with all the people, and it's easy doing a mail merge in OpenOffice.org. However, OpenOffice.org doesn't support the advanced PDF. I just want to output some text onto each page and print it out. Here...

How can you set default values for merge fields in a Microsoft Word document

I am using Aspose (.NET/C#) to generate a word document which contains multiple mail-merge fields. However as I have one methode handling a couple of different templates, not every merge field may get handled/merged. Is there a way to set a default "text" value for merge fields? ...

iText - how to do search/replace on existing RTF document

Hi all, Currently I'm working on simple Mail-Merge module. What I need is to load plain *.RTF template, then replace all words enclosed in [[field]] tags and at the end - print them out. I found iText library which is free and capable of loading/saving pdfs and rtf. I managed to load rtf, merge a few copies to one huge doc but I have ...

How to do Mailmerge in Openoffice using Vb.net

Hey All, Its 5th Question and apart of one i didnt get response from the experts.... Hope this time i will get the helping hand. I want to do mailmerge in openoffice using Vb.net and i am totally new with openoffice. i searched on net for some help to understand how to use openoffice with vb.net but all i get is half info.....So can u...

How to use Word MailMerge to send document to a SOAP Web Service

Hello, I'm looking for a way to use Word mail merge for sending merged documents to a webservice I'm using. This webservice accepts word documents. I would like to start a regular mail merge process, design my document, add a recipient list and merge fields. Then I would like to click a button which will cause Word to generate each docu...

Merge fields in Office 2007 or 2003 using C#

I want to set up a template document along the lines of this: ================ Doc content ---------------- Merge Field1 Merge Field2 Merge Field3 ---------------- More doc content ================ I then want to be able to open the document, load a DataTable from the database in C# and merge the fields in the template section in ...

Inspecting a Word mail merge data source programmatically

I want to iterate over all rows of a MS-Word mail merge data source and extract the relevant data into an XML. I'm currently using this code: Imports Microsoft.Office.Interop Do objXW.WriteStartElement("Recipient") Dim objDataFields As Word.MailMergeDataFields = DataSource.DataFields For Each FieldIndex As Integer In mdictMergeFi...

Mail Merge using the Open XML SDK

Hullo! Right, lets say I have a DataTable with 3 columns (a,b,c) and a docx file with the corresponding MailMerge fields set up. What I'd like to do is perform a Mail Merge on the document with the data. Presume that you can write to the hard disk (if you need to create a csv etc for doing the merge etc), you don't have word, excel etc...

Word Mail Merge Fields

I have not worked with Mail Merge fields before and everything I find requires you to select a data source prior to be able to insert merge fields. All I want to do is place fields on the word document and not merge it down until its consumed by the code. I essentially am creating document templates. How is this done in word? ...

Mail Merge (Excel to Word) using C#

Hey all I was wondering if anybody knew how to do a mail merge using an Excel file as a datasource, to fill in fields on a Word template? I wish to use the interop for Word if i could...but am having a few difficulties finding code for this. Does anybody have any syntax for this? Thank you in advance. ...

MailMerge: No fixed width font?

Hi all, I am trying to send data to a specific MergeField. The data are sent correctly. Each line of the data has for specific characters. For example the data to the field may be: 12345 FIRST\nABCDE.F SECOND (it cannot get the newline so i just so it through character \n) Now in the printed document each character h...

MailMerge from C# when Access mdb has password

Hi , I am trying to use MailMerge programatically ( from C# ). I am using an Access database file as a data source. The Access database has a password. The following code does not work for some reason even though it should. I get an invalid password textbox. WordApp = new ApplicationClass(); WordApp.Visible = true; ...

retrieve MergeField values from mail-merged Word Document programmatically

I have a large collection of MSWord documents (approximately 40,000), which are the results of mailmerges (same main document, different data sources). One of the merge fields is a text field which could have the text "Yes" or "No". Is there an easy way to list which of the documents have that merge field set to the value "Yes"? (I'm...

[OpenOffice & C#] Mailmerge using OpenOffice

Hello all. I'm currently trying to do a mailmerge, using C# and OpenOffice. I have a list of destanatary in my DB. I would like this to be possible : the user edit an OO document, put fields like "name" "adresse" "city" and some standard text (e.g. : "Hello Name how are you ?", edit the style, etc etc, then go to my application, cli...

Mail Merge with Open Office from C# .NET

I need to be able to mail merge from an ASP.NET web form in C# .net to Open Office. I can connect with OpenOffice and open a file but that is where things stop at the moment. I have a table of mail merge items that need inserting into a document for each client on my system but I can't find anything on the internet that helps me perfor...

Mail Merge from a dataset in C# ASP.NET

I am new to OpenOffice and have been reading lots of articles about it. I need to code mail merge functionality in C# to instruct OpenOffice to perform a mail merge on a supplied document. I have seen lots of mail merge examples using VB.NET but when I convert the VB to C# the mailmerge component of it always fails to create correctly. M...

C# superfast "mailmerge" type replace

I hoping for some pointers on the quickest way to do a replace when the document that needs bits replacing is constant (a sort of mailmerge scenario). Of course there are lots of ways of doing replaces using string.replace and regexp but it looks like they need to parse the input document each time looking for the match. That's the bit ...

Compile ASPX in WinForms App

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 ru...

Question about mail merge in DesignPro 1.0.1 for mac

I'm using Avery DesignPro v. 1.0.1 for mac to print out address labels using a mail merge. There are two columns for addresses (Address1 and Address2), but for most of the entries on the list, Address2 is blank. When I do the mail merge, I get several address labels with a blank line between Address1 and the City, State line because th...