Link to Word Document -2

  • Thread starter Thread starter Dennis D.
  • Start date Start date
D

Dennis D.

Hello:
I am trying to link to a Microsoft Word documents located on my HD as
....href="D:/filename.doc".... from a page on my http://localhost/ IIS
server. The file opens fine in Word using ctrl-click in the FrontPage
editor.

When I open the http://localhost/page.htm with IE the link has a file:///
appended to it, making the link look like file:///D:/filename.doc in the
status bar. The file does not open in Microsoft Word having clicked on it.

I tried removing the file///: reference in FP 2003, but it still displayed
in IE. Must be an IE thing. So, I posted this in the IE general newsgroup
and did not get a response.

I seen the other post solution:
http://support.microsoft.com/default.aspx?scid=162059

Which says to create a subkey called BrowserFlags with a D-Word value of 8
in the HKEY.localmachine.software.classes.Word.Document.8 Key

Did that. Didn't work.
I have Word 2003, which is version 11.
There is no Word.Document.11 key in that area of the registry. Suppose I
could create a Word.Document.11 key and add the BrowserFlags subkey, but
thought I would ask first.

I saw a JavaScript solution, but the article was written for an audience
other than me, so I couldn't figure out how to code it.

What is happening here, and how can I link to an MS Word document stored on
my own computer?


Thank you,

Dennis D.,
http://www.dennisys.com/
 
That's normal operation because you're linking to a file outside of your web.

You need to import the doc file into the web and then link to it.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
You need to import the doc file into the web and then link to it.
That would defeat the purpose of linking to it wouldn't it.
I probably need a JavaScript script to open the application with the doc as
an argument.
I could probably work one up from scratch, but I figured this would be a
fairly common use for the technology.\

Thanks,
Dennis D.,
http://www.dennisys.com/
 
From Microsoft "file protocol" (file://)

Note Internet Explorer 6 Service Pack 1 (SP1) no longer allows browsing a
local machine from the Internet zone. For instance, if an Internet site
contains a link to a local file, Internet Explorer 6 SP1 displays a blank
page when a user clicks on the link. Previous versions of Internet Explorer
followed the link to the local file.

Microsoft provides no mention of a work around.

The idea is to create a 'book' of shortcuts that represent objects (primary
files) found on a storage device, to include a 'table of contents' and
index. The current paradigm is to use a file manager, a favorites menu, a
'Start Menu,' Search, drag and drop, cut and paste, and probably other such
file handling and shortcut handling software. That paradigm does not allow
access of objects in a coherent, paginated, and indexed manner. Therefore,
finding the source of related material on any given storage device, not
mentioning multiple storage devices in a network, becomes a patchwork of
tasks which at best detracts from the focus on the subject by causing the
attention of the researcher to shift to the mechanics of the acquiring the
objects rather than actually using the objects.

One alternative is the Start Menu. This method is not satisfactory to me.
Given that literally thousands of objects can reside on a single hard drive,
the start menu pages do not offer the formatting and pagination equal to
HTML.

The next alternative would be a programmatic implementation in a windows
application, that is, to create a specialized application to accomplish the
same versatility available in HTML pages. This alternative is labor
intensive; requiring the one by one classification, coding, and handling of
each resource object. An advanced application could include page creation
and indexing, and handling of multiple shortcuts.

The last alternative would be to use existing software if it can be found,
or software used in a manner alien to its original purpose.

Recommendations would be appreciated.

Dennis D.,
http://www.dennisys.com/
 
What are you talking about?
There is nothing preventing you from creating either a html page (w/ links to other files on your PC - relative to your saved file
location) or FP Disc based Web / Site w/ same
- only pages w/ active content are blocked by IE and that can be changed by using the mark of the web in your pages
(see http://www.xtreeme.com/dhtml/faq/answers/Q3048.php )

If you are attempting to open MS Office programs and don't want them to open in the Browser see
http://support.microsoft.com/default.aspx?scid=162059
(and yes the article is dated, so for Office 2003 you would look for subkeys ending in .11 instead of just thru 8)
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| From Microsoft "file protocol" (file://)
|
| Note Internet Explorer 6 Service Pack 1 (SP1) no longer allows browsing a
| local machine from the Internet zone. For instance, if an Internet site
| contains a link to a local file, Internet Explorer 6 SP1 displays a blank
| page when a user clicks on the link. Previous versions of Internet Explorer
| followed the link to the local file.
|
| Microsoft provides no mention of a work around.
|
| The idea is to create a 'book' of shortcuts that represent objects (primary
| files) found on a storage device, to include a 'table of contents' and
| index. The current paradigm is to use a file manager, a favorites menu, a
| 'Start Menu,' Search, drag and drop, cut and paste, and probably other such
| file handling and shortcut handling software. That paradigm does not allow
| access of objects in a coherent, paginated, and indexed manner. Therefore,
| finding the source of related material on any given storage device, not
| mentioning multiple storage devices in a network, becomes a patchwork of
| tasks which at best detracts from the focus on the subject by causing the
| attention of the researcher to shift to the mechanics of the acquiring the
| objects rather than actually using the objects.
|
| One alternative is the Start Menu. This method is not satisfactory to me.
| Given that literally thousands of objects can reside on a single hard drive,
| the start menu pages do not offer the formatting and pagination equal to
| HTML.
|
| The next alternative would be a programmatic implementation in a windows
| application, that is, to create a specialized application to accomplish the
| same versatility available in HTML pages. This alternative is labor
| intensive; requiring the one by one classification, coding, and handling of
| each resource object. An advanced application could include page creation
| and indexing, and handling of multiple shortcuts.
|
| The last alternative would be to use existing software if it can be found,
| or software used in a manner alien to its original purpose.
|
| Recommendations would be appreciated.
|
| Dennis D.,
| http://www.dennisys.com/
|
| | > Hello:
| > I am trying to link to a Microsoft Word documents located on my HD as
| > ...href="D:/filename.doc".... from a page on my http://localhost/ IIS
| > server. The file opens fine in Word using ctrl-click in the FrontPage
| > editor.
| >
| > When I open the http://localhost/page.htm with IE the link has a file:///
| > appended to it, making the link look like file:///D:/filename.doc in the
| > status bar. The file does not open in Microsoft Word having clicked on it.
| >
| > I tried removing the file///: reference in FP 2003, but it still displayed
| > in IE. Must be an IE thing. So, I posted this in the IE general newsgroup
| > and did not get a response.
| >
| > I seen the other post solution:
| > http://support.microsoft.com/default.aspx?scid=162059
| >
| > Which says to create a subkey called BrowserFlags with a D-Word value of 8
| > in the HKEY.localmachine.software.classes.Word.Document.8 Key
| >
| > Did that. Didn't work.
| > I have Word 2003, which is version 11.
| > There is no Word.Document.11 key in that area of the registry. Suppose I
| > could create a Word.Document.11 key and add the BrowserFlags subkey, but
| > thought I would ask first.
| >
| > I saw a JavaScript solution, but the article was written for an audience
| > other than me, so I couldn't figure out how to code it.
| >
| > What is happening here, and how can I link to an MS Word document stored
| > on
| > my own computer?
| >
| >
| > Thank you,
| >
| > Dennis D.,
| > http://www.dennisys.com/
| >
|
|
 
Stefan:
What are you talking about?
Here's the page I quoted. I am going to send msg with HTML fmt. Please excuse:

MSDN Home > MSDN Library > Web Development > Asynchronous Pluggable Protocols > SDK Documentation > Predefined Protocols file Protocol Internet Development Index

--------------------------------------------------------------------------

Opens a file on a local or network drive.

Syntax

file:///sDrives[|sFile]Tokens

sDrives
Specifies the local or network drive.
sFile
Optional. Specifies the file to open. If sFile is omitted and the account accessing the drive has permission to browse the directory, a list of accessible files and directories is displayed.

I am having problems opening local files from HTML links on a page served from http://localhost/etc/page.htm. I saved a single page to the desktop, and the .doc files and .exe's >are< opening. So I am still working on solving the 'localhost' problem. Thanks for the links. At least I know that something will work.

Thank You Stefan,

Dennis D.,


Stefan B Rusynko said:
What are you talking about?
There is nothing preventing you from creating either a html page (w/ links to other files on your PC - relative to your saved file
location) or FP Disc based Web / Site w/ same
- only pages w/ active content are blocked by IE and that can be changed by using the mark of the web in your pages
(see http://www.xtreeme.com/dhtml/faq/answers/Q3048.php )

If you are attempting to open MS Office programs and don't want them to open in the Browser see
http://support.microsoft.com/default.aspx?scid=162059
(and yes the article is dated, so for Office 2003 you would look for subkeys ending in .11 instead of just thru 8)
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| From Microsoft "file protocol" (file://)
|
| Note Internet Explorer 6 Service Pack 1 (SP1) no longer allows browsing a
| local machine from the Internet zone. For instance, if an Internet site
| contains a link to a local file, Internet Explorer 6 SP1 displays a blank
| page when a user clicks on the link. Previous versions of Internet Explorer
| followed the link to the local file.
|
| Microsoft provides no mention of a work around.
|
| The idea is to create a 'book' of shortcuts that represent objects (primary
| files) found on a storage device, to include a 'table of contents' and
| index. The current paradigm is to use a file manager, a favorites menu, a
| 'Start Menu,' Search, drag and drop, cut and paste, and probably other such
| file handling and shortcut handling software. That paradigm does not allow
| access of objects in a coherent, paginated, and indexed manner. Therefore,
| finding the source of related material on any given storage device, not
| mentioning multiple storage devices in a network, becomes a patchwork of
| tasks which at best detracts from the focus on the subject by causing the
| attention of the researcher to shift to the mechanics of the acquiring the
| objects rather than actually using the objects.
|
| One alternative is the Start Menu. This method is not satisfactory to me.
| Given that literally thousands of objects can reside on a single hard drive,
| the start menu pages do not offer the formatting and pagination equal to
| HTML.
|
| The next alternative would be a programmatic implementation in a windows
| application, that is, to create a specialized application to accomplish the
| same versatility available in HTML pages. This alternative is labor
| intensive; requiring the one by one classification, coding, and handling of
| each resource object. An advanced application could include page creation
| and indexing, and handling of multiple shortcuts.
|
| The last alternative would be to use existing software if it can be found,
| or software used in a manner alien to its original purpose.
|
| Recommendations would be appreciated.
|
| Dennis D.,
| http://www.dennisys.com/
|
| | > Hello:
| > I am trying to link to a Microsoft Word documents located on my HD as
| > ...href="D:/filename.doc".... from a page on my http://localhost/ IIS
| > server. The file opens fine in Word using ctrl-click in the FrontPage
| > editor.
| >
| > When I open the http://localhost/page.htm with IE the link has a file:///
| > appended to it, making the link look like file:///D:/filename.doc in the
| > status bar. The file does not open in Microsoft Word having clicked on it.
| >
| > I tried removing the file///: reference in FP 2003, but it still displayed
| > in IE. Must be an IE thing. So, I posted this in the IE general newsgroup
| > and did not get a response.
| >
| > I seen the other post solution:
| > http://support.microsoft.com/default.aspx?scid=162059
| >
| > Which says to create a subkey called BrowserFlags with a D-Word value of 8
| > in the HKEY.localmachine.software.classes.Word.Document.8 Key
| >
| > Did that. Didn't work.
| > I have Word 2003, which is version 11.
| > There is no Word.Document.11 key in that area of the registry. Suppose I
| > could create a Word.Document.11 key and add the BrowserFlags subkey, but
| > thought I would ask first.
| >
| > I saw a JavaScript solution, but the article was written for an audience
| > other than me, so I couldn't figure out how to code it.
| >
| > What is happening here, and how can I link to an MS Word document stored
| > on
| > my own computer?
| >
| >
| > Thank you,
| >
| > Dennis D.,
| > http://www.dennisys.com/
| >
|
|
 
Opening word documents from HTML Pages located on the HD:

I found that I can open the linked .doc from an html page whose address is
like:
c:\\inetpub\wwwroot\d3\index.htm
but not from:
http://localhost/d3/index.htm
If you are attempting to open MS Office programs and don't want them to
open in the Browser see
http://support.microsoft.com/default.aspx?scid=162059
(and yes the article is dated, so for Office 2003 you would look for
subkeys ending in .11 instead of just thru 8)

Something about the registry entries changed between versions, so that
solution goes gray. Might be able to figure out how to rig the registry
anyway if I need to do that. Don't foresee any problems using c:\\ for the
near future as this project does not involve networked computers yet. It
might if I select to pass the project info on to the public, so it would be
helpful to know the right answer somewhere down the line.

Thanks,
D.
http://www.dennisys.com/



Stefan B Rusynko said:
What are you talking about?
There is nothing preventing you from creating either a html page (w/ links
to other files on your PC - relative to your saved file
location) or FP Disc based Web / Site w/ same
- only pages w/ active content are blocked by IE and that can be changed
by using the mark of the web in your pages
(see http://www.xtreeme.com/dhtml/faq/answers/Q3048.php )

If you are attempting to open MS Office programs and don't want them to
open in the Browser see
http://support.microsoft.com/default.aspx?scid=162059
(and yes the article is dated, so for Office 2003 you would look for
subkeys ending in .11 instead of just thru 8)
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| From Microsoft "file protocol" (file://)
|
| Note Internet Explorer 6 Service Pack 1 (SP1) no longer allows browsing
a
| local machine from the Internet zone. For instance, if an Internet site
| contains a link to a local file, Internet Explorer 6 SP1 displays a
blank
| page when a user clicks on the link. Previous versions of Internet
Explorer
| followed the link to the local file.
|
| Microsoft provides no mention of a work around.
|
| The idea is to create a 'book' of shortcuts that represent objects
(primary
| files) found on a storage device, to include a 'table of contents' and
| index. The current paradigm is to use a file manager, a favorites menu,
a
| 'Start Menu,' Search, drag and drop, cut and paste, and probably other
such
| file handling and shortcut handling software. That paradigm does not
allow
| access of objects in a coherent, paginated, and indexed manner.
Therefore,
| finding the source of related material on any given storage device, not
| mentioning multiple storage devices in a network, becomes a patchwork of
| tasks which at best detracts from the focus on the subject by causing
the
| attention of the researcher to shift to the mechanics of the acquiring
the
| objects rather than actually using the objects.
|
| One alternative is the Start Menu. This method is not satisfactory to
me.
| Given that literally thousands of objects can reside on a single hard
drive,
| the start menu pages do not offer the formatting and pagination equal to
| HTML.
|
| The next alternative would be a programmatic implementation in a windows
| application, that is, to create a specialized application to accomplish
the
| same versatility available in HTML pages. This alternative is labor
| intensive; requiring the one by one classification, coding, and handling
of
| each resource object. An advanced application could include page
creation
| and indexing, and handling of multiple shortcuts.
|
| The last alternative would be to use existing software if it can be
found,
| or software used in a manner alien to its original purpose.
|
| Recommendations would be appreciated.
|
| Dennis D.,
| http://www.dennisys.com/
|
| | > Hello:
| > I am trying to link to a Microsoft Word documents located on my HD as
| > ...href="D:/filename.doc".... from a page on my http://localhost/ IIS
| > server. The file opens fine in Word using ctrl-click in the FrontPage
| > editor.
| >
| > When I open the http://localhost/page.htm with IE the link has a
file:///
| > appended to it, making the link look like file:///D:/filename.doc in
the
| > status bar. The file does not open in Microsoft Word having clicked on
it.
| >
| > I tried removing the file///: reference in FP 2003, but it still
displayed
| > in IE. Must be an IE thing. So, I posted this in the IE general
newsgroup
| > and did not get a response.
| >
| > I seen the other post solution:
| > http://support.microsoft.com/default.aspx?scid=162059
| >
| > Which says to create a subkey called BrowserFlags with a D-Word value
of 8
| > in the HKEY.localmachine.software.classes.Word.Document.8 Key
| >
| > Did that. Didn't work.
| > I have Word 2003, which is version 11.
| > There is no Word.Document.11 key in that area of the registry. Suppose
I
| > could create a Word.Document.11 key and add the BrowserFlags subkey,
but
| > thought I would ask first.
| >
| > I saw a JavaScript solution, but the article was written for an
audience
| > other than me, so I couldn't figure out how to code it.
| >
| > What is happening here, and how can I link to an MS Word document
stored
| > on
| > my own computer?
| >
| >
| > Thank you,
| >
| > Dennis D.,
| > http://www.dennisys.com/
| >
|
|
 
Back
Top