• 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.

Baker
0
Bakersville
Asked:
Bakersville
3 Solutions
 
Dale BurrellDirectorCommented:
0
 
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?
0
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.

 
rajapandian_81Commented:
Hi,

You can use any of the online converter to convert C# to vb.net. Some of the converters are:
http://www.carlosag.net/tools/codetranslator/
http://www.dotnetspider.com/convert/Csharp-To-Vb.aspx

Refer below link for mail merge:
http://blog-dotnetsp.blogspot.com/2010/02/automation-of-mail-merge-from-windows.html
0
 
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.

http://www.microsoft.com/download/en/details.aspx?id=5124

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

http://www.codeproject.com/KB/office/Fill_Mergefields.aspx?msg=3160774

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.
0
 
BakersvilleAuthor Commented:
Thank you all for you help.  Got this working with the suggestions.
0
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