Re: Relative Links with includeText

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: macropod (pNeOd.sStPeAiMn_at_pcug.org.au)
Date: 03/06/04


Date: Sat, 6 Mar 2004 17:25:37 +1100

Hi Jason,

INCLUDETEXT, INCLUDEPICTURE and LINK don't support relative links. RD does,
but this can be expressed in absolute terms also. To update link references
to take account of folder changes, you might like to check out my 'Field
Link Updater', at:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=261488

Cheers

"Jason Krug" <jason.krug@att.net> wrote in message
news:F392DEAF-0892-4F92-9B81-84FF44EF428C@microsoft.com...
> I am trying to create a document strucutre that I can copy into several
folders. A generic master Document that pulls in additional data specific
to the server, based upon the folder it is in. I have a script that will
create the data files; I store those data files in separate folders. I
would like to copy the 'SAME' master file to each FOLDER?
>
> I can do this EASILY with Hyperlinks, but you will not be able to print
the contents of MASTER.DOC and the DATA files in 1 print. I want to include
the data 'inline' in the MASTER.DOC. I started to do this with includeText
(from Insert>File, Insert Link).
>
> This is what the directory would look like:
> FOLDER1 MASTER.DOC
> disk-data.txt
> cpu-data.txt
>
> FOLDER2 MASTER.DOC
> disk-data.txt
> cpu-data.txt
>
> PROBLEMS:
> 1) The Update Method (Automatic/Manual) in the Edit>Links dialog are
disabled! These links do NOT automatically update when I open the document.
I must manually update them. The only way I can get Update Method
(Automatic/Manual) enabled is by linking through the PASTE SPECIAL > AS LINK
Method.
>
> 2) The Links are FULLY QUALIFIED! (C:/file/folder1/disk-data.txt) not
Relative (./disk-data.txt). Therefore, when I copy MASTER.DOC to Folder2,
the links are still pointing to Folder1. I have to manually recreate the
links to Folder2 (complicated since I have 6 data files, and 10 folders).
I tried to make it relative through Edit Field, and changed the link to
./disk-data.txt. I thought I had it working last night, but now I get
"Error! Not a vlid file name." error.
>
> 3) As well, the Links have to be relative since the file will be accessed
BOTH from a WWW Page, as well as a C Drive. So I cannot fully qualify the
links and have it work in both locations!
>
> I am open to the format of the data files (HTML, TXT, etc). I may even be
open to the format of the MASTER Document, since I can save WORD as pretty
much anything.
>
> The GOAL is just to:
> 1) Have a Template that will work in different folders
> 2) Have the actual data appear inline in the MASTER.DOC
> MASTER.DOC
> MASTER-TEXT1
> DISK-DATA-VALUE1
> DISK-DATA-VALUE2
> DISK-DATA-VALUE3
> MASTER-TEXT2
> CPU-DATA-VALUE1
> CPU-DATA-VALUE2
> CPU-DATA-VALUE3
> MASTER-TEXT3
> 3) Have the data updated AUTOMATICALLY when the MASTER.DOC is opened
>
> Help!
> --Jason
>
> (I am sorry if this is a 2nd post, I posted last night and cannot find the
thread?)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 5/03/2004


Relevant Pages

  • Re: Virtualization
    ... One for the Common folder and one for User. ... I try in most cases to let me application create data files as needed, ... at install time, I install those files in the common data area. ...
    (microsoft.public.vb.general.discussion)
  • Re: Installing data files with application?
    ... If the user is allowed to "Rename" the data files, then they should be put in his/her "My Documents" folder. ... If they are put in the "My Documents" folder then they probably should NOT be uninstalled when your app uninstalls... ... All is well until the user changes the name of the> file (I ... > re-install this file if deleted" setting in the installer part of VS ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Owners and My Documents folders
    ... Will removing files from one folder, say Owner's Documents, ... Purchase an external hard drive. ... Copy data files (music, pictures, ... your system and do incremental backups. ...
    (microsoft.public.windowsxp.basics)
  • Re: Tell Me Where To Stick It!
    ... the user does /not/ normally need to browse to the folder. ... They use many of the same data files for program operation. ... People make their own versions, zip them up, reorganize by ... to a specific LOGICAL directory location, where the programs will pick up on ...
    (microsoft.public.vb.general.discussion)
  • Re: Please help- Inventory drive and/or software
    ... install what you need as you realize you need it, ... their data files under the program's installation folder. ... so that you can save such data files manually. ... of that program and putting it back (before you reinstall it) usually works ...
    (microsoft.public.windowsxp.general)