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.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.


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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.