Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advice on how to implement a Word document into VB

Status
Not open for further replies.

rlh145

Programmer
Feb 19, 2001
36
US
I have what is a pre-defined form set up in MS Word by way of scanning it in. It happens to be a restaurant inspection certificate. I have been asked to be able to use this template and add the correct grade and score in the appropriate places and print it out.

In this case, I do not have Crystal Reports to work with; only DataReport. I am not sure which way to go with this. I believe it is possible, but I would appreciate any advice on how to bring this document in (or components of it).

Thanks!
Ralph
 
Have you done a search on Word within this site. There should be lots of bits to read. If you have a form in VB6 in which you enter the data, of which is going into a Word Document, then you won't need Crystal Reports or Datareport. You can open an application of Word and put the data in. I have recently been doing a similar exercise. There are two ways to get there, either by code in VB to generate all the Word Document or having a Template which VB can put in the data and save as, to keep Template.
You need to set references to Word etc which you should pick up in other posts. Also a good way to get some code (Johnwm) set me off in my early start, is to create macros in Word and then modify the code it generates. Only a start but hope it helps
 
Hi,

I've run across this same issue and have found few good books. I did just order "Learning Word Programming" from Amazon and it seems to be very good. You can pretty easily create a Word Doc from VB or VBA/Access, using parameters passed from the GUI app to Word to fill in the blanks. I have some code to send you but it's at home (not here at work) and I'll try to send it to you. Excel VBA Programming also had 1 good Word example in it that got me started.

Thanks,
CWarner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top