Word 2003 question

  • Thread starter Thread starter Chubbly Geezer
  • Start date Start date
C

Chubbly Geezer

Hi

would anyone know a good resource I could use or offer a few pointers.?

I am using VS 2005 but could use VS.Net.

I am wanting to create Word 2003 documents from within Visual Basic. I
believe I am probably looking a creating a word document to use as a
template, but then wish to load and populate this document with data from an
SQL database using Visual Basic. This document can then be amended by the
user if need be and saved. Many user may be performing this operation at
any one time so all I really want is to open an instance of the Word
document.

I've never had to interact with Word before so I don't know the object model
and not really sure what the best way of creating the Word template would
be.

Many thanks

Chubbly
 
Chubbly said:
I am wanting to create Word 2003 documents from within Visual Basic. I
believe I am probably looking a creating a word document to use as a
template, but then wish to load and populate this document with data
from an SQL database using Visual Basic. This document can then be
amended by the user if need be and saved. Many user may be
performing this operation at any one time so all I really want is to
open an instance of the Word document.

I've never had to interact with Word before so I don't know the
object model and not really sure what the best way of creating the
Word template would be.

You don't really need to use Word: you can write the file in rtf format and
give it a .doc extension and Word will happily open it.

Andrew
 
It appears that on occasion you reference the objects using slightly
different syntax. I could be wrong. As I said, new to word objects.
 
Not convinced that would be easier or even possible. I need to include
graphics and custom fonts.
 
Chubbly said:
Not convinced that would be easier or even possible. I need to
include graphics and custom fonts.

What's this - feature creep? :-)

Create the template in Word with something obvious as placeholders for the
data. Save it in rtf format. Cut it up at the placeholders and concatenate
those parts with the appropriate data.

At something like 26MB per Word instance (check that - I could be wrong), I
am not convinced that your method would scale very well.

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top