HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Code to open a .dot but save to .doc
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
David Munoz



Joined: 20 Nov 2008
Posts: 4

Posted: Thu Nov 20, 2008 5:34 pm     Code to open a .dot but save to .doc  

I want to be able to open a .dot file on our network but open it in a way that it will function like the template it is. I guess I really don't want it to open but more so execute it? Sorry I'm new to this.. Any information would be greatly appreciated..


Corey Bryant



Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

Posted: Fri Nov 21, 2008 7:18 am      

Usually this is handled locally on the user's machine - depending on how the program is set up to handle this type of file (for security). The easier way would be to ZIP the file and then have the user unzip it and open it in the program that will handle the .dot extension.

Downloading doc without opening might offer a few other choices as well.

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts | Expression Web Blog
David Munoz



Joined: 20 Nov 2008
Posts: 4

Posted: Fri Nov 21, 2008 9:18 am      

Thanks for the response.
I know that if you were to double click on a .dot file in Explorer MS Word will not really open the file but use it as a template for a new document. This is the functionality I wish to maintain. We have a Dot Net Nuke intranet and have a simple html doc that has links to the file. The problem is that when clicked on, it opens the .dot and doesn't use it as a template. So when a user tries to save or saveas, it only allows the .dot extension and all others are grayed out. It also opens the doc in windows explorer and not MS Word... not sure if that's the problem..

Any thoughts on this? Thanks again and I appreciate any further info you can give..
Corey Bryant



Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

Posted: Fri Nov 21, 2008 10:01 am      

I have not used a .dot file for awhile, but I remember that both the .dot and .doc have very limited funcationalities since they are being opened in Microsoft IE and not Microsoft Word.

Can you open the .doc file via Microsoft Word to see if the .dot file will open with all functionality?

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | Microsoft Expressions
David Munoz



Joined: 20 Nov 2008
Posts: 4

Posted: Fri Nov 21, 2008 10:55 am      

Yes these two file type do open correctly and have full functionality outside of the IE interface.

My ideal situation would be to have the link prompt a Save/Open dialog box for the file. This way if the user wants to download it to their desktop they can OR just click open, have it exectute the in the normal behavior a .dot would, and start a new document in Word based on that template.
Corey Bryant



Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

Posted: Fri Nov 21, 2008 12:33 pm      

The post downloading a document without saving will offer you some other URLs for code. You could also speak with your server admin about changing the mime type of the .dot file to accomplish the save as box. If you are on a windows server How To Raise a "File Download" Dialog Box for a Known MIME Type will help your server admin.

_________________
Corey
Toll Free Numbers | Mile High Merchant Accounts | Expression Web Blog
David Munoz



Joined: 20 Nov 2008
Posts: 4

Posted: Fri Nov 21, 2008 1:10 pm      

Thank you for the information I really appreciate it..
I'll check out the information....

Thanks again, Take care...
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> General HTML
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group