• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 710
  • Last Modified:

Word Mail Merge from SQL server 2008 in to word document via asp.net page using vb

Hi everyone.

Can anyone help, i have been searching the web for a number of hours and i cna not find any examples of how to merge x amount of records into a word document using from an ASP.NET web page using VB.

All exapmles i have found is in C# and i am having trouble in coinverting them.

Please, any examples would be greatly appreciated.

3 Solutions
Dale BurrellDirectorCommented:
BakersvilleAuthor Commented:
Thank you dale_burrell:, but my company will not pay that price.

Do you happen to know of any other things i could use?
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.


You can use any of the online converter to convert C# to vb.net. Some of the converters are:

Refer below link for mail merge:
Dale BurrellDirectorCommented:
As best I can tell the other solutions offered require MS Office interop to be installed which may or may not be an option for you. I had a feeling it require MS Office installed on your server but I could be wrong. You may want to consider using OpenXML which is the format used for .docx files - its an open source format and there is the OpenXML SDK which helps to access that.


You could write it yourself - I did, although it looks like someone has written something to do just that (in C# unfortunately).


Honestly its not that hard to convert - I end up having to translate VB code all the time - at the end of the day because they compile to a common runtime they have to have similar functionality, its just a case of knowing the syntax.
BakersvilleAuthor Commented:
Thank you all for you help.  Got this working with the suggestions.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now