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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving a Office document in IE

Status
Not open for further replies.

rpeters74

Programmer
May 24, 2002
46
US
I would like to be able to Save a Office document that is opened in IE.

I would like to do this without creating a Word/Excel/PowerPoint.Application ActiveXObject (I do not want the users to have to alter their IE Security settings etc...)

Any input would really help ...

- rp
 
The simplest way I can think of is have a link on the document that tells users to download file...then have that file in a .doc or a .zip (if more then one file, image, etc)...
Something to this effect might help you:
Code:
<a href=&quot;somefile.doc&quot;>Click here to save the word document.</a>
I have not failed; I have merely found 100,000 different ways of not succeding...
 
Making a link to the document will open the .doc in the IE browser window. I know the user may be able to use File -> Save As to save the document but I was looking for a way to do this with JavaScript (make my own Save button).

To be a little more exact, I have a frameset where one frame loads in the .doc and the other frame has the Save button like so:


<frameset rows=&quot;64,*&quot;>
<frame name=&quot;header&quot; src=&quot;header.aspx&quot;>
<frame name=&quot;main&quot; src=&quot;test.doc&quot;>
</frameset>


Within header.htm I have two buttons; Save and Print. I can get the Print button to work but I can not figure out a way to Save the .doc without creating the Word.Application ActiveXObject. (the more I dig the more I am convinced that I may not be able to do this without ActiveX). Header.htm follows:


<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;parent.main.print();&quot;>
<input type=&quot;button&quot; value=&quot;Save&quot; onclick=&quot;???&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top