Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue May 23, 2017 3:01 pm

Hello,
I am testing Spire.Doc for my project. At the moment I use WordInterop.

I found a lot of sample for mail merge. But what I not found is:

for example, I have 10 Address in the database. Now I want to write a letter to this 10 Persons.
In Word is a Tab "Mailings" -> "Previous Results" , where I view the Result of the Mailing Document.

In WordInterop I connect to a datasource.
(vk_my_doc.MailMerge.OpenDataSource(SerienBriefQuelleTextfile, vk_false, vk_false, vk_true);

How can I do that in Spire Doc ?

Do you have a sample ?

Thanks Andreas

a.waning@gmx.de
 
Posts: 5
Joined: Thu May 18, 2017 8:40 am

Wed May 24, 2017 2:57 am

Dear Andreas,

Thanks for your inquiry.
Here is a guide for your kind reference.
https://www.e-iceblue.com/Tutorials/Spi ... eport.html
If there is any question, please provide us with a sample file and the code you were using for investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu May 25, 2017 7:31 am

Is there no way to connect a datasource in word to use the standard MailMerge in Word ?
So that I can use the preview result in Word ?
Thanks Andreas

a.waning@gmx.de
 
Posts: 5
Joined: Thu May 18, 2017 8:40 am

Thu May 25, 2017 8:56 am

Dear Andreas,

Thanks for your information.
Since our Spire.Doc implements the MailMerge funcion by replacing placeholders with data, one template only generates one merged document each time.
If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
Last edited by Betsy.jiang on Fri May 26, 2017 2:04 am, edited 1 time in total.
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu May 25, 2017 6:41 pm

Thank you very much.

I use spire doc and I open the word document with Wordinterop. (Connect to datasource)

That works fine.

I replace my old lib with spire doc. Before I buy I want to make sure that all my need tasks works.

Until this point i like spire doc very much.

Thanks Andreas

a.waning@gmx.de
 
Posts: 5
Joined: Thu May 18, 2017 8:40 am

Fri May 26, 2017 2:03 am

Dear Andreas,

Thanks for your feedback.
If you have any question, please do not hesitate to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc

cron