could any one please help me with the code for creating a MS word document from a record that already exists in the database using vb.Net coding..
thank you in advance

could any one please help me with the code for creating a MS word document from a record that already exists in the database using vb.Net coding..
thank you in advance

hai,
try using crystal report it is very simple as we desin a form in vb.net
you can export the content to pdf , xls, and many more formats
no other software needed

It is much easier to do it in a way that you design some kind of “tagged” template first – including all your tables and then from the code process/populate these “tags” with your data (mail merge). If your app is running on the server side, then you should not use COM Interop for this purpose but OpenXML SDK is recommended (http://blogs.msdn.com/b/atverma/archive/2011/12/31/utility-to-generate-word-documents-from-templates-using-visual-studio-2010-and-open-xml-2-0-sdk.aspx).
You can also check third parties for mail merge like Aspose or Docentric.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.