473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Word 2003 question

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
Nov 28 '05 #1
5 1059
>
I am using VS 2005 but could use VS.Net.


Can you explain the difference between these two products?
Nov 28 '05 #2
Chubbly Geezer wrote:
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
Nov 28 '05 #3
It appears that on occasion you reference the objects using slightly
different syntax. I could be wrong. As I said, new to word objects.

"Chris" <no@spam.com> wrote in message
news:eF*************@TK2MSFTNGP10.phx.gbl...

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


Can you explain the difference between these two products?

Nov 28 '05 #4
Not convinced that would be easier or even possible. I need to include
graphics and custom fonts.
"Andrew Morton" <ak*@in-press.co.uk.invalid> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
Chubbly Geezer wrote:
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

Nov 28 '05 #5
Chubbly Geezer wrote:
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
Nov 28 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
5
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I...
1
by: AP | last post by:
Hi, I'm trying to use c# to pop up a dialog box when a user attempts to close word to prompt them if they want to exit or cancel (obviously other stuff needs to happen based on their selection...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
56
by: Richard Grene | last post by:
using Word automation from vb.net how can I get to the bottom of the document? Thanks, Richard
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
4
by: Lyle Fairfield | last post by:
I asked this question in Microsoft.Public.Word two days ago but I have not received an answer. I believe there are Office Experts here who may be able to help. --------- "A friend has Office...
3
by: Niyazi | last post by:
Hi, Its like a I am searching alot but still not found or satisfy what I found it. My question is that I had SQL server that contains some data. I also have a application folder call...
6
by: Mark Rae | last post by:
Hi, My client has asked me to provide a "quick and dirty" way to export the contents of a DataGrid to both Excel for analysis and Word for editing and printing, so I'm investigating client-side...
2
by: Colin Halliday | last post by:
I have a Word 2003 mail merge main document (form letter) that is linked to another Word document data source for the mail merge. If I open this doc using the Word GUI, it first asks me to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.