[AccessD] Another word question...

Bobby Heid bheid at appdevgrp.com
Fri Jul 22 07:45:33 CDT 2005


Gustav,

I just figured out that I can not do a full RTF document.  The reason being
that the user creates the word document with bookmarks.  So I do not know
the layout of the document.

But, can I just figure out how to do the two tables in RTF and insert it
into the word document?

Thanks,
Bobby

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Friday, July 22, 2005 6:04 AM
To: accessd at databaseadvisors.com
Subject: Re: [AccessD] Another word question...


Hi Bobby

One method is to avoid Selection and only deal with ranges. I've used
that with Excel and guess you can do the same with Word.

Another more radical method is to rebuild your function to generate the
full RTF code and write that directly to a file. It may not be that
difficult as you will not generate all the "fat" that Word normally adds
to an RTF file.
I've used that method for a client to generate the basic text for a
catalogue and it runs at a speed you hardly believe, about 20ms per
page. That's because all you do is to loop the recordset(s) while
appending pure ASCII to a text file you keep open during the process.

Look up in the archive "Writing raw RTF document using VBA - Solved"
from 2004-01-02.

/gustav





More information about the AccessD mailing list