That's how I'm nearly doing it at the moment.
What I do is have a special query with sensible/readable column names. The
autotext entries are also saved in another table and has a field for the
query. So in my app I do the following:
1. Get the auottext record that matches the autotext entry I want to use in
word
2. Get the query used in autotext record and run it (passing any required
parameters)
3. Loop thhrough the recordset, setting each column in the bookmark back in
word (by matching the column names)
As I said, this works fine for simple documents but not for the complex one
that I need.
Ivan
OK, I work with similar documents. What we do is have two tables, one with
the table name, autotext name and bookmark name. A further table with the
table items, x-pos, y-pos within the table. This may resolve your
performance problems, set a range and populate the x/y pos; only bookmark the
first cell in the table.
This works with large documents, although as I say its best to have one
dedicated autotext file and reference out to this.
Tom
> That's how I'm nearly doing it at the moment.
>
[quoted text clipped - 75 lines]
> > > > Thanks,
> > > > Ivan
Ivan Debono - 14 Dec 2004 09:03 GMT
This would solve the problem if the users aren't allowed to modify the
templates. But the reason why I'm using word templates is that the users are
allowed to change the templates however they like.
> OK, I work with similar documents. What we do is have two tables, one with
> the table name, autotext name and bookmark name. A further table with the
[quoted text clipped - 86 lines]
> > > > > Thanks,
> > > > > Ivan
Ivan Debono - 14 Dec 2004 15:45 GMT
Basically what I want to achieve is something like a report designer (take
Access as an example), where the user designs his own report. The link to
the database is over the bookmarks though.
Is it possible to achieve something like that with Word?
Ivan
> OK, I work with similar documents. What we do is have two tables, one with
> the table name, autotext name and bookmark name. A further table with the
[quoted text clipped - 86 lines]
> > > > > Thanks,
> > > > > Ivan