VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Export from VB to Word

by Tmess (4 Submissions)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

Have you ever wanted to merge data from a database to Word when say one person has multiple records asscociated with them. Word doesn't allow this. For example, It allows one person record but what if you want to show multiple orders in the document for that person. Access allows you to do this with a subreport but not word. This code will allow you to create a new word document, add text to it, format the text, insert data from one or more databases into it, print it, save it, e-mail it using outlook, and/or then delete it if you want. Raised events allow you to know the current status of the class. The sample included shows you how to use it with the Northwind.mdb Perhaps if you want you can make it out of process activeX exe. Check it out. It really is a useful Tool if you need to work with word. Note: This does not use a DDE connection

Inputs
Set Properties and Methods
Assumes
How to call a class. Must have MS Word and outlook
Code Returns
Values from Class

Rate Export from VB to Word

Upload

Download this snippet    Add to My Saved Code

Export from VB to Word Comments

No comments have been posted about Export from VB to Word. Why not be the first to post a comment about Export from VB to Word.

Post your comment

Subject:
Message:
0/1000 characters