472,958 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Word Document or Report...which to use?

I am updating a VB4.0 quote generation program to VB.net. The old
program takes user inputs, performs calculations, saves the data to
Access databases and uses Crystal Reports 5.0 to generate a quote. A
while back users obviously wanted to be able to edit/e-mail the quote
(these ancient Cyrstal 5.0 reports don't allow PDF creation) so I
modified the old VB4.0 code to allow users to save the Crystal Report
as Word document which they can then edit/e-mail from Word. This works
OK but there are two big downfalls: 1) the initial report data is
saved in the database and the modifications made in Word are not so you
end up with database data that isn't accurate 2) The conversion of
the Crystal Report to Word is clunky - the Word document that is
generated is touchy when it comes to editing - blocks of data move in
an unpredictable fashion when data is added.

As I upgrade this program to VB.net, I am trying to clean up this whole
issue. Users have loved the ability to edit/e-mail so I'm thinking the
way to go in VB.net is to forego storing in databases and simply have
my application fill in a Word Template with the quote data. Instead of
a database with quote data, they end up with a collection of Word
Documents, each representing an individual quote.

I need some input - feel free to offer your comments/suggestions on any
or all of the following:
1) Is this a good idea? Am I overlooking an advantage to the database
method?
2) Does anyone have any links/samples that show me how to easily fill
a Word Template from VB.Net 2003?
3) Can I set up the Bill of Material part of my template such that if a
user changes the cost of a line item the TOTAL is changed at the
bottom? If so, how?
4) Has anyone who has done this before have any words of
wisdom/experiences they could share as to the difficulty/issues they
faced?

Thanks in advance for any help...
Jmar

Sep 24 '06 #1
2 2146
The feature you are looking for in Word is called "fields" (on the insert
menu). To access them, you need to be programming with the Word object
model (by making a reference from VS.NET to the COM Word Object Library).

While I haven't programmed against fields in Word, I would suspect you would
access specific fields via a "fields" property of the document object.

Yes, you can have a field set up that will update if other fields on the
form change, BUT (if memory serves) normally, you have to press F9 in Word
after making a change to a field for the rest of the fields to update. But,
you could easily add a nice (easy to see) button to your Word template that
says something like "Click Me After Making Changes To Update Your Form".

"jmar" <jm******@yahoo.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
>I am updating a VB4.0 quote generation program to VB.net. The old
program takes user inputs, performs calculations, saves the data to
Access databases and uses Crystal Reports 5.0 to generate a quote. A
while back users obviously wanted to be able to edit/e-mail the quote
(these ancient Cyrstal 5.0 reports don't allow PDF creation) so I
modified the old VB4.0 code to allow users to save the Crystal Report
as Word document which they can then edit/e-mail from Word. This works
OK but there are two big downfalls: 1) the initial report data is
saved in the database and the modifications made in Word are not so you
end up with database data that isn't accurate 2) The conversion of
the Crystal Report to Word is clunky - the Word document that is
generated is touchy when it comes to editing - blocks of data move in
an unpredictable fashion when data is added.

As I upgrade this program to VB.net, I am trying to clean up this whole
issue. Users have loved the ability to edit/e-mail so I'm thinking the
way to go in VB.net is to forego storing in databases and simply have
my application fill in a Word Template with the quote data. Instead of
a database with quote data, they end up with a collection of Word
Documents, each representing an individual quote.

I need some input - feel free to offer your comments/suggestions on any
or all of the following:
1) Is this a good idea? Am I overlooking an advantage to the database
method?
2) Does anyone have any links/samples that show me how to easily fill
a Word Template from VB.Net 2003?
3) Can I set up the Bill of Material part of my template such that if a
user changes the cost of a line item the TOTAL is changed at the
bottom? If so, how?
4) Has anyone who has done this before have any words of
wisdom/experiences they could share as to the difficulty/issues they
faced?

Thanks in advance for any help...
Jmar

Sep 24 '06 #2
Scott,

Thanks for your response. I'm looking for others out there who could
also share their experience/opinions on how I should proceed.

Jmar

Scott M. wrote:
The feature you are looking for in Word is called "fields" (on the insert
menu). To access them, you need to be programming with the Word object
model (by making a reference from VS.NET to the COM Word Object Library).

While I haven't programmed against fields in Word, I would suspect you would
access specific fields via a "fields" property of the document object.

Yes, you can have a field set up that will update if other fields on the
form change, BUT (if memory serves) normally, you have to press F9 in Word
after making a change to a field for the rest of the fields to update. But,
you could easily add a nice (easy to see) button to your Word template that
says something like "Click Me After Making Changes To Update Your Form".

"jmar" <jm******@yahoo.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
I am updating a VB4.0 quote generation program to VB.net. The old
program takes user inputs, performs calculations, saves the data to
Access databases and uses Crystal Reports 5.0 to generate a quote. A
while back users obviously wanted to be able to edit/e-mail the quote
(these ancient Cyrstal 5.0 reports don't allow PDF creation) so I
modified the old VB4.0 code to allow users to save the Crystal Report
as Word document which they can then edit/e-mail from Word. This works
OK but there are two big downfalls: 1) the initial report data is
saved in the database and the modifications made in Word are not so you
end up with database data that isn't accurate 2) The conversion of
the Crystal Report to Word is clunky - the Word document that is
generated is touchy when it comes to editing - blocks of data move in
an unpredictable fashion when data is added.

As I upgrade this program to VB.net, I am trying to clean up this whole
issue. Users have loved the ability to edit/e-mail so I'm thinking the
way to go in VB.net is to forego storing in databases and simply have
my application fill in a Word Template with the quote data. Instead of
a database with quote data, they end up with a collection of Word
Documents, each representing an individual quote.

I need some input - feel free to offer your comments/suggestions on any
or all of the following:
1) Is this a good idea? Am I overlooking an advantage to the database
method?
2) Does anyone have any links/samples that show me how to easily fill
a Word Template from VB.Net 2003?
3) Can I set up the Bill of Material part of my template such that if a
user changes the cost of a line item the TOTAL is changed at the
bottom? If so, how?
4) Has anyone who has done this before have any words of
wisdom/experiences they could share as to the difficulty/issues they
faced?

Thanks in advance for any help...
Jmar
Sep 30 '06 #3

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

Similar topics

4
by: Jeff Harbin | last post by:
I've got an ACCESS 2000 application that I'm developing. One of the outputs of this app will be to generate a series of 'jobs' which corresponds to a record in the database. Each record will be...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
4
by: svdh2 | last post by:
Dear All, I have lately strugled more and more with Access, what started as a simple database has brought me to the fundaments of Access. I need to transfer fields from various tables to a...
5
by: feck | last post by:
Hi, Is there any code/routine to export a report as a word document retaining the formatting. I have a requirment to produce some fairly detailed statisitical reports for transmission by e-mail....
2
by: kelly.pearson | last post by:
I had some access 97 reports that I used to publish to MS Word that worked before we upgraded to Access 2K and Word 2K. Although there were some minor discrepancies, I was able to tweak the access...
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...
5
by: rick m | last post by:
We have a fairly good sized Access database that contains some info on the children our agency sees. We also have 40+ templates that require some info from the database be inputted into them, such...
5
by: jmar | last post by:
I posted a week ago and received one response. I'm looking for the opinion of several experienced .NET people before I proceed so I'm posting again. Sorry for the repost... I am updating a...
8
by: babyangel43 | last post by:
Hello, I have a query set up in Access. I run it monthly, changing "date of test". I would like this query to be merged with a Word document so that the cover letter is created in Word, the fields...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.