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.

Mon May 20, 2013 8:13 am

Hi,

I was wondering if you can help me, in my vb.net code I'm calling a stored procedure which returns all the data I need to perform a mail merge to a word template.

I'm doing the following:
dim dt as DataTable = ReturnDataTable(sSQL);

sTemplateFile = GetTemplateDoc();

dim document Document = new Document(sTemplateFile);

document.MailMerge.Execute(dt);

This works fine for most of my fields, except one that is an image on my datasource, have to any examples of how to merge this type of field into a word doc?

Thanks

KeithNolan
 
Posts: 3
Joined: Thu Nov 29, 2012 8:01 pm

Tue May 21, 2013 11:02 am

Hello,

Sorry for the late reply.

In regards to merging image field into a word doc, I provide you a full demo attached. Please try it.If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu May 23, 2013 9:35 am

Hello,

Is the sample helpful for you? Has your issue been resolved? Could you please update the thread if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Jun 05, 2013 10:58 am

That worked perfectly, thanks.

KeithNolan
 
Posts: 3
Joined: Thu Nov 29, 2012 8:01 pm

Return to Spire.Doc