Board index » delphi » D5 , Word 97/8.0 OLE Help Needed

D5 , Word 97/8.0 OLE Help Needed

Hello,

I am designing an applicationt that will be used to generate documents -

insurance policies - and have decided to use Word as then engine to do
the assembly.  I can let the end users control what the layout and
language looks like, while allowing me to have my code place data on the

pages.  As I am in the early part of the project, I have 8 different
classes of forms that the population fo 500+ forms are broken down
into.  Some forms are just fill in blanks, others are different types of

schedules  (details ). Some of have one detail "band" area, others two
or three.  There are overflow forms for some and for other none have
been needed (yet).

The program will run on an application processor montioring a "queue" on

the server for requests to generate and build the policy document.

When setting up the forms in word (as Templates), what is the best way
to indicate where data is to be transfered to Word?  Should I use
bookmarks, or special variables for search and replace.   If bookmarks
are used, should the document be prepared on a page-by-=page basis and
then inserted into the master document?

I want to avoid creating a bunch of word documents. Once a policy has
been assembled in one word file, I will be storing it back to the AS/400

(it will eventually be migrated to optical subsystem) so that it can be
accessed int he future if needed.  I am also investigating the
possibility of outputing the document to a PDF to allow for electronic
delivery of the policy as well.

What problems will I encounter if user only has Word 97? should I focus
on Word 2000 (8.0)

Are there any basic examples of using Word in this fashion with Delphi
5.  I have Delphi 3, but have decided to finally start developing with
Delphi 5.

Any help or direction would be appreciated.

- Lou Feliz
 lfe...@nospam.usa.net

 

Re:D5 , Word 97/8.0 OLE Help Needed


Hmm..  found some interesting stuff  in thei NG.  I have decided to try and
look at using MS Binder. Anyone have any experiece / troubles using Binder?
Quote
"L. Feliz" wrote:
> Hello,

> I am designing an applicationt that will be used to generate documents -

> insurance policies - and have decided to use Word as then engine to do
> the assembly.  I can let the end users control what the layout and
> language looks like, while allowing me to have my code place data on the

> pages.  As I am in the early part of the project, I have 8 different
> classes of forms that the population fo 500+ forms are broken down
> into.  Some forms are just fill in blanks, others are different types of

> schedules  (details ). Some of have one detail "band" area, others two
> or three.  There are overflow forms for some and for other none have
> been needed (yet).

> The program will run on an application processor montioring a "queue" on

> the server for requests to generate and build the policy document.

> When setting up the forms in word (as Templates), what is the best way
> to indicate where data is to be transfered to Word?  Should I use
> bookmarks, or special variables for search and replace.   If bookmarks
> are used, should the document be prepared on a page-by-=page basis and
> then inserted into the master document?

> I want to avoid creating a bunch of word documents. Once a policy has
> been assembled in one word file, I will be storing it back to the AS/400

> (it will eventually be migrated to optical subsystem) so that it can be
> accessed int he future if needed.  I am also investigating the
> possibility of outputing the document to a PDF to allow for electronic
> delivery of the policy as well.

> What problems will I encounter if user only has Word 97? should I focus
> on Word 2000 (8.0)

> Are there any basic examples of using Word in this fashion with Delphi
> 5.  I have Delphi 3, but have decided to finally start developing with
> Delphi 5.

> Any help or direction would be appreciated.

> - Lou Feliz
>  lfe...@nospam.usa.net

Re:D5 , Word 97/8.0 OLE Help Needed


<<L. Feliz:
Are there any basic examples of using Word in this fashion

Quote

http://www.djpate.freeserve.co.uk/Automation.htm

It's quite easy to cope with both Word 97 and 2000 - use
the Word 2000 components, but be sure to check the
WordApplication's Version property and use the AddOld,
OpenOld etc methods when appropriate. (Make sure you test
on both versions).

I haven't done much with binder, sorry.

--
Deborah Pate

Re:D5 , Word 97/8.0 OLE Help Needed


Thanks.
How/Where do I obtain information about the methods and properties of
the built in Office Components that come with Delphi 5?  I guess I could
just bypass the components directly, but I would rather use the wrappers
(for my initial testing etc...)

- Lou

Quote
Deborah Pate wrote:

> <<L. Feliz:
> Are there any basic examples of using Word in this fashion

> http://www.djpate.freeserve.co.uk/Automation.htm

> It's quite easy to cope with both Word 97 and 2000 - use
> the Word 2000 components, but be sure to check the
> WordApplication's Version property and use the AddOld,
> OpenOld etc methods when appropriate. (Make sure you test
> on both versions).

> I haven't done much with binder, sorry.

> --
> Deborah Pate

--
Luis R. Feliz
Information Systems Manager
KRM Risk Management and Insurance Services
http://www.krmrisk.com
ph:559-277-4800 ext 461
fx:559-277-4950
lfe...@krmrisk.com.nospam
(remove the .nospam)

Other Threads