Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening a document

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all,

I am having a problem opening a word perfect document from within an <a> tag in a page. I can open an Excel Doc as well as a Word Doc, but have trouble with WP (isn't it odd how Microsoft IE has no problems opening its own software :) ).

Anyways....if anyone has any tips I am all ears.

Thanks in advance.

Clint
 
IE uses same registry information that Windows Explorer uses.
There is three ways to associate file with software:
1. Right way:
(Re-)Install software that you think that must display file of type you are interested in.

2. Simple:
assoc DocumentType=c:\Full\Path\To\Program.exe &quot;%1&quot;
ftype .ext=DocumentType

this is not perfect because you have no way to specify mime-type

3. Simplest:
In Windows Explorer window open Menu / Tools / Folder_Options / File_Types, click New, follow instructions.

4. Expert way (use with extreme care):
open regedit
create DocumentType key under HKEY_CLASSES_ROOT
set default value to file type description
create subkey path shell/open/command
set default value to

c:\full\path\to\program.exe &quot;%1&quot;

create .ext key under HKEY_CLASSES_ROOT
set default value to DocumentType created before
create string value &quot;Content Type&quot; for mime-type

If this is not enough. Michael Dubner
Brainbench MVP/HTML+JavaScript

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top