Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#304321 - 25/11/2007 03:37 MS Word Help?
Ladmo
addict

Registered: 04/09/2004
Posts: 525
Loc: Oklahoma
I have a simple document I created in Word, and saved as htm format. I then made that my default 'home' page when I launch IE. It has links for my most visited sites, like google and the bbs. I click on the link and it gets me there...fine.

However when I try to link it to a document on my c drive (or any drive) it just sits there and does nothing.

Anyone care to enlighten me on how I can accomplish this?

Thanks

Top
#304322 - 25/11/2007 05:54 Re: MS Word Help? [Re: Ladmo]
music
addict

Registered: 25/06/2002
Posts: 456
You are using a URI of the form

file://foo

right?

That's as far as my knowledge goes. Sorry.

I'm on a MacOS X machine right now so I can't check it further for you
in terms of C: drives and whatnot.

Since MacOS uses a Unix filesystem, where the root starts at "/", the URI has three slashes like this:

file:///Users/user1/Desktop/SampleFile

Offhand, I don't remember how to insert the DOS style C: drive in there.

Edit:
I just got Googly with it.
Try this:
file://localhost/c:/programs/myfile.txt[\r\n]

Also, you probably don't really need the [\r\n] at the end.



Top
#304323 - 25/11/2007 13:24 Re: MS Word Help? [Re: music]
Ladmo
addict

Registered: 04/09/2004
Posts: 525
Loc: Oklahoma
Thanks, but I am not having any luck.
My default pages comes up with the links on it. I can link to WWW sites just fine, just not to a local document, whether it is a .doc or a .htm file...just does not pull it up. The files I am trying to bring up are on the root of c....

This seems like it should be increadably easy, but my two brain cells can't seem to get it to work.

Thanks

Top
#304324 - 25/11/2007 13:42 Re: MS Word Help? [Re: Ladmo]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Quote:
My default pages comes up with the links on it.


Where are you hosting the default page? If you're hosting it on a web server, then you can't link to local files.

I just tried it. If the HTML page is on the local disk, then linking to local files works fine -- use file:///C|/Path/To/Wherever.

If not, then it doesn't.

I believe that it's deliberate, done for security reasons. Otherwise, someone could put a link on their webpage and could persuade you to open a file on your machine that did something nasty.

You could try adding the page to the list of trusted sites (assuming that you're using IE).
_________________________
-- roger

Top
#304325 - 25/11/2007 14:12 Re: MS Word Help? [Re: Ladmo]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I don't use Windows normally, but this just looks so silly I had to try it.

I created two very simple .html files, and just dropped them onto the WinXP Desktop. Clicking on one works, and the link therein gets the other one. All with simple relative linking.


Here are the two documents, plain text files:
firstpage.html: Code:

<html>
<body>
<h1>Test Page</h1>
<a href="secondpage.html">Click here</a>
</body>
</html>


secondpage.html:Code:

<html>
<body>
<h1>Second Page</h1>
<a href="firstpage.html">Click here</a>
</body>
</html>



I even set one of them as my "home page" in IE6, which used this path for it:
C:\Documents and Settings\Mark Lord\Desktop\firstpage.html

????
What's the problem?

Top
#304326 - 25/11/2007 14:16 Re: MS Word Help? [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I can even link to other local documents, using a full DOS path:
Code:

<html>
<body>
<h1>First Page</h1>
<a href="secondpage.html">Second Page</a><br>
<a href="C:\Documents and Settings\Mark Lord\Desktop\thirdpage.html">Third Page</a>
</body>
</html>


Top
#304327 - 25/11/2007 19:19 Re: MS Word Help? [Re: Ladmo]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
When you hover over one of the links that doesn't work, what does the status bar say (at the bottom)? Knowing what link Word is actually making will help. Also, you could try right clicking and saying Copy Link or whatever it is in IE and Windows. Haven't used IE since 5.0 came out, so I can't remember what options it had on the right click menu.

Top
#304328 - 26/11/2007 01:00 Re: MS Word Help? [Re: mlord]
Ladmo
addict

Registered: 04/09/2004
Posts: 525
Loc: Oklahoma
The problem, my dear MLord, is, as the subject says MSWORD...
Yeah I could have done it with notepad, but that was not the excersise...

Both files are local on my C: drive, as i thought I had mentioned .
_________________________
The only easy day...was yesterday!

Top
#304329 - 26/11/2007 01:50 Re: MS Word Help? [Re: Ladmo]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Quote:
The problem, my dear MLord, is, as the subject says MSWORD...
Yeah I could have done it with notepad, but that was not the excersise...

Both files are local on my C: drive, as i thought I had mentioned .


The question, my dear Ladmo, was (your exact words):
>Anyone care to enlighten me on how I can accomplish this?

So I'm answering it. Nobody said anything here about "notepad".

Save the file as "text only", and confirm your intent when it warns about losing formatting information.

-ml


Edited by mlord (26/11/2007 02:04)

Top
#304330 - 26/11/2007 02:19 Re: MS Word Help? [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Quote:

Save the file as "text only", and confirm your intent when it warns about losing formatting information.



Mmmm.. just for you, I dug out the Office 2000 CD that came with one of my old computers, and installed Word from it in VMware.

I had previously used WordPad, and the instructions given above work perfectly there. But with this version of Word, they do not. Instead, just use the Insert --> hyperlink menu entry to create the new links, give them full or relative addresses as shown earlier, and save as .htm format. That works here.

To link to a local word document, I just used the Browse function to locate and identify the link target ("type the file or web page name" in MS-speak), and it worked fine.

Cheers

Top
#304331 - 26/11/2007 04:39 Re: MS Word Help? [Re: Ladmo]
music
addict

Registered: 25/06/2002
Posts: 456
Quote:
Both files are local on my C: drive, as i thought I had mentioned .


So neither my localhost/c: thing nor Roger's c|/path thing worked to find your C drive?

Top
#304332 - 26/11/2007 08:40 Re: MS Word Help? [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
For reference I tried the same exercise last night with Word 2003 and it worked exactly as I expected. The links all worked fine, that was using "Save as webpage" rather than "Save as text".

I'm sure it is possible to replicate the problem reported by tying IE's security settings for the local zone, maybe that is what has happened here.

Oh and this is what a simple HTML file with one link looks like by the time Word 2003 has had it's way with it:

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="C_files/filelist.xml">
<title>C:\test</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Andrew Norman</o:Author>
<o:LastAuthor>Andrew Norman</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>2</o:TotalTime>
<o:Created>2007-11-25T18:16:00Z</o:Created>
<o:LastSaved>2007-11-25T18:16:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>6</o:Words>
<o:Characters>36</o:Characters>
<o:Company>Microsign Technology Ltd</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>41</o:CharactersWithSpaces>
<o:Version>11.8132</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DontDisplayPageBoundaries/>
<w:GrammarState>Clean</w:GrammarState>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><a href="../../../test.htm">C:\test.htm</a></p>

</div>

</body>

</html>


Edited by andy (26/11/2007 08:43)
_________________________
Remind me to change my signature to something more interesting someday

Top
#304333 - 26/11/2007 09:57 Re: MS Word Help? [Re: andy]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Quote:
Oh and this is what a simple HTML file with one link looks like by the time Word 2003 has had it's way with it


Word 2007 is worse. Frankly, if you're editing HTML, there are better tools out there than Word. Including notepad

Personally, I use either Notepad or Visual Studio 2005. Or vi.
_________________________
-- roger

Top
#304334 - 26/11/2007 09:59 Re: MS Word Help? [Re: andy]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Quote:
<p class=MsoNormal><a href="../../../test.htm">C:\test.htm</a></p>



Word also does things like this. You need to ensure that the files move around together, or you need to use fully-qualified paths.
_________________________
-- roger

Top