We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Simple merge -need of passing array when the .dotx contains all the necessary information?

Trial version at the moment

Using asp.net 2010 (vb for coding + devexpress).

I have a preset word document in .dotx format which contains fields which come from an mdb access 2007 query, no parameters:

Investor Number: «InvestorNumber»<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

«NameofInvestor»

«TheAddress»

«PostCode»

In your example it seems one has to send an array of fields and values and I cannot understand this. I just want to merge and create those documents in a specific folder so they can be emailed.

I also cannot see any catalogue of the documents that have been merged, though this is ok as I can use the contents of the folder just populated.

So my questions are:

- if the word document is a template (dotx) and everything is set-up do I still need to send the array, and if so why? since I am just executing a dotx word document

- can I tell it where to store those merge documents?

- does it produces a catalogue of the documents which have been merged

Thank you


This message was posted using Page2Forum from Simple Mail Merge Explained - Aspose.Words for .NET

Hi

Thanks for your request.

1. You do not need to pass arrays, you can use any data source supported by Aspose.Words for mail merge:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-execute-simple-mail-merge.html

Since in your case data are stored in mdb, I think, IDataReader or DataTable would be the best options.

2. Sure, you can save the output document where you need:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/save-a-document.html

3. Unfortunately, I am not sure what you mean. Could you please clarify?

Best regards,