views:

548

answers:

2

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 perform the mail merge or even how to set the mail merge up.

If anyone can show me a simple example merging forenames and surnames out of a database table into an Open Office mail merge form using C#, I would be very grateful.

+1  A: 

Try looking in the Open Office Forum for Code Snippets. There are a lot of C#-examples and if you don't find something you can use, I would propose to post the question there (if you haven't already).

Documentation about MailMerge-Datasources is here.

TToni
A: 

You may find AODL ODF Toolkit useful. I use extensively the Java version to manipulate ODTs.

pdjota