Creating Reports using Word

R

Roland Leisch

Hello!

I have to develop an application which creates DOC Reports (and in
future even XLS Reports) from my application. I want to transform the
data contained in my application and fill it into a word document.

Can anyone here give me a hint how to do this? I thought of inserting
tags into a DOT file. Afterwards I would work through the DOT file and
insert the data. Can you think of better ways (in terms of performance)
to creat such reports?


for example:
<name> tag will be filled with name property of my object and so on

Thanks in advance!
 
C

Cindy M -WordMVP-

Hi Roland,

"Traditionally", bookmarks are used as "tags" for target locations when
automating data insertion into Word.

You could use tags, such as you propose, but for these you'd need to use
Find/Replace, which is likely to be slower than
doc.Bookmarks(index).Range.Text = "data"
I have to develop an application which creates DOC Reports (and in
future even XLS Reports) from my application. I want to transform the
data contained in my application and fill it into a word document.

Can anyone here give me a hint how to do this? I thought of inserting
tags into a DOT file. Afterwards I would work through the DOT file and
insert the data. Can you think of better ways (in terms of performance)
to creat such reports?


for example:
<name> tag will be filled with name property of my object and so on

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
R

Roland Leisch

Cindy said:
Hi Roland,

"Traditionally", bookmarks are used as "tags" for target locations when
automating data insertion into Word.

You could use tags, such as you propose, but for these you'd need to use
Find/Replace, which is likely to be slower than
doc.Bookmarks(index).Range.Text = "data"

Thanks for the hint, but now I have a further question: I havent found
this bookmark object in excel - is this right? My next task will be to
implement such reporting functionallity for excel, so I will have to
find an other way to implement this in excel.

Thanks very much!
 

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

Top