INCLUDETEXT

M

macropod

Hi Jim,

It can be difficult to set up an INCLUDETEXT field to
source data from different files and folders. Here's one
that allows you to nominate a folder on the C drive and a
document within that folder.
{INCLUDETEXT "C:\\{FILLIN Folder?}\\{FILLIN
Filename?}.doc"}

Unfortunately, Word fields don't support navigation, so
your users would have to know the names of both the
folders and the files.

It is also important to note that, if you need to specify
the path to the folder, you will need to have that coded
before the FILLIN field, or get your users to type it in.
In either case, the path has to be specified using double
backslashes (\\) to delineate folders in the path instead
of the usual single backslash.

If different parts of your target document are drawing
from different bookmarks in the same source file/folder,
it would be preferable to use and ASK field instead of a
FILLIN field to define the path and fielname, eg:
{INCLUDETEXT "D:\\{ASK Folder Folder?}{Folder}\\{ASK File
Filename?}{File}.doc" BkMrk1}where BkMrk1 is the name of
the first bookmark you want to reference.

From then on, any further references to bookmarks from the
same file can be obtained via:
{INCLUDETEXT "D:\\{Folder}\\{File}.doc" BkMrk#}
where BkMrk# represents the required bookmark.

In each of the above examples, the fields will retain
whatever was last typed into them. However, since you also
want to retain the contents of the fields once the source
documents have been deleted, you'll need to 'harden' them
by selecting them and pressing Ctrl-Shift-F9 to replace
the fields with their contents.

Cheers
PS: Remove NO.SPAM from the above before replying.
 

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