Hi

I have a framework of word documents which all have to link to a generic
word document which is always placed relative to the famework.

I would like to make the link in the documents with a relative path, instead
of the absolute path which is generated when using "paste special/link"
function.

I have tried to modufied the path in the "fields" but I cannot make it work
as expected.

This is what it looks like

{ LINK Word.Document.8 "\\\\Servdk03\\pharma\\LKP08_master\\Stamdata.doc"
"OLE_LINK19" \a \p }


This is what I'm looking for.

{LINK Word.Document.8 "\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}


However that doesn't seems to work.

--
BR
Henry

Re: Link (OLE) with relative path by Russ

Russ
Fri Nov 23 15:03:18 PST 2007

Henry,
I'm on a Mac now, so I can't try these suggestions myself.
But I noticed in your relative path you didn't use 4 backslashes at the
beginning.
{LINK Word.Document.8 "\\\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}

Also have you tried to use a relative path in Windows Explorer address bar,
like:"\\..\..\..\Stamdata.doc" to see if Windows would even recognize the
string as a legitimate network path?


> Hi
>
> I have a framework of word documents which all have to link to a generic
> word document which is always placed relative to the famework.
>
> I would like to make the link in the documents with a relative path, instead
> of the absolute path which is generated when using "paste special/link"
> function.
>
> I have tried to modufied the path in the "fields" but I cannot make it work
> as expected.
>
> This is what it looks like
>
> { LINK Word.Document.8 "\\\\Servdk03\\pharma\\LKP08_master\\Stamdata.doc"
> "OLE_LINK19" \a \p }
>
>
> This is what I'm looking for.
>
> {LINK Word.Document.8 "\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}
>
>
> However that doesn't seems to work.

--
Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID


Re: Link (OLE) with relative path by Henry

Henry
Mon Nov 26 04:02:01 PST 2007

Hi Russ

Yes your are right, what does 4 * backslash mean?

I assumend that it meant absolut "root" or something like that.

I don't know anything about the place where the files will be stored, only
it will be stored releative to eachother.

so in it should be ..\..\..\stamdata.doc

regards
Henry

"Russ" wrote:

> Henry,
> I'm on a Mac now, so I can't try these suggestions myself.
> But I noticed in your relative path you didn't use 4 backslashes at the
> beginning.
> {LINK Word.Document.8 "\\\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}
>
> Also have you tried to use a relative path in Windows Explorer address bar,
> like:"\\..\..\..\Stamdata.doc" to see if Windows would even recognize the
> string as a legitimate network path?
>
>
> > Hi
> >
> > I have a framework of word documents which all have to link to a generic
> > word document which is always placed relative to the famework.
> >
> > I would like to make the link in the documents with a relative path, instead
> > of the absolute path which is generated when using "paste special/link"
> > function.
> >
> > I have tried to modufied the path in the "fields" but I cannot make it work
> > as expected.
> >
> > This is what it looks like
> >
> > { LINK Word.Document.8 "\\\\Servdk03\\pharma\\LKP08_master\\Stamdata.doc"
> > "OLE_LINK19" \a \p }
> >
> >
> > This is what I'm looking for.
> >
> > {LINK Word.Document.8 "\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}
> >
> >
> > However that doesn't seems to work.
>
> --
> Russ
>
> drsmN0SPAMikleAThotmailD0Tcom.INVALID
>
>

Re: Link (OLE) with relative path by Russ

Russ
Mon Nov 26 11:14:53 PST 2007

Henry,
See below.

> Hi Russ
>
> Yes your are right, what does 4 * backslash mean?

A network address normally starts with two backslashes. In a hyperlink
field, apparently, every backslash needs to be preceded (escaped) by a
backslash to tell Word that it is indeed the character backslash that we are
using and not a backslash for formatting the field.
So all the backslashes in a network address in a hyperlink need to be
doubled and you didn't do that in your example you tried.

In a network, I don't know if you can use relative addressing like you can
on the local hard drive system. That's why I suggested trying what you
wanted to use in an Explorer address bar to see if it would work or Windows
would recognize it as network path.
Some other network administrators out there may know how to create a
relative path for a network.

>
> I assumend that it meant absolut "root" or something like that.
>
> I don't know anything about the place where the files will be stored, only
> it will be stored releative to eachother.
>
> so in it should be ..\..\..\stamdata.doc
>
> regards
> Henry
>
> "Russ" wrote:
>
>> Henry,
>> I'm on a Mac now, so I can't try these suggestions myself.
>> But I noticed in your relative path you didn't use 4 backslashes at the
>> beginning.
>> {LINK Word.Document.8 "\\\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}
>>
>> Also have you tried to use a relative path in Windows Explorer address bar,
>> like:"\\..\..\..\Stamdata.doc" to see if Windows would even recognize the
>> string as a legitimate network path?
>>
>>
>>> Hi
>>>
>>> I have a framework of word documents which all have to link to a generic
>>> word document which is always placed relative to the famework.
>>>
>>> I would like to make the link in the documents with a relative path, instead
>>> of the absolute path which is generated when using "paste special/link"
>>> function.
>>>
>>> I have tried to modufied the path in the "fields" but I cannot make it work
>>> as expected.
>>>
>>> This is what it looks like
>>>
>>> { LINK Word.Document.8 "\\\\Servdk03\\pharma\\LKP08_master\\Stamdata.doc"
>>> "OLE_LINK19" \a \p }
>>>
>>>
>>> This is what I'm looking for.
>>>
>>> {LINK Word.Document.8 "\\..\\..\\..\\Stamdata.doc" "OLE_LINK19" \a \p}
>>>
>>>
>>> However that doesn't seems to work.
>>
>> --
>> Russ
>>
>> drsmN0SPAMikleAThotmailD0Tcom.INVALID
>>
>>

--
Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID


Re: Link (OLE) with relative path by Henry

Henry
Mon Dec 10 05:53:02 PST 2007


--
Henry


"Russ" wrote:

> Henry,
> See below.
>
> > Hi Russ
> >
> > Yes your are right, what does 4 * backslash mean?
>
> A network address normally starts with two backslashes. In a hyperlink
> field, apparently, every backslash needs to be preceded (escaped) by a
> backslash to tell Word that it is indeed the character backslash that we are
> using and not a backslash for formatting the field.
> So all the backslashes in a network address in a hyperlink need to be
> doubled and you didn't do that in your example you tried.
>
> In a network, I don't know if you can use relative addressing like you can
> on the local hard drive system. That's why I suggested trying what you
> wanted to use in an Explorer address bar to see if it would work or Windows
> would recognize it as network path.
> Some other network administrators out there may know how to create a
> relative path for a network.

I see.

I have tried double backslash but with no luck.
four backslashes will not be relativ since that means absolute path
\\server\sharesomethingpath and that'll ruin the relative path ;o)

Does anyone know if OLE links supports relative path and in case it does,
what is the correct syntax??

BR
Henry