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

Embed MS Word in Browser

Status
Not open for further replies.

happyIndian100

Programmer
Jul 20, 2003
66
US
I am trying to figure out a way to open, edit, and save office documents (mostly microsoft word documents but could be excel,powerpoint files in the future)using the internet explorer browser.

This solution should work on a Microsoft environment with Windows 2000's with IIS 5.0 as servers and windows 98 and up as the clients.
The files will reside in a windows 2000 server on the intranet and employees should be able to browse the documents and should have the ability to open, edit, and save them.
I am planning to put an asp file somewhere where employees can browse through directories and files and click on the link to open the document they want.

But what i want to find out is, once they opened the word document inside their browsers how can they save them easily in to the original location on the server.
I will appreciate the answers as clear as possible
Thanks
 
well...

That sounds like a lot of functions. But here is a start.
Code:
<%
Response.ContentType = &quot;application/msword&quot;
%>
will open an ASP as a Word Document.
Code:
<%
Response.ContentType = &quot;application/vnd.ms-excel&quot;
%>
will open an ASP as an Excel document.

you can create the document content with HTML. You can even put functions into the Spreadsheet like this:
Code:
<td align=&quot;left&quot;>=product(b2,c2)</td>

That is one method. Another thing you may try is with frames.
Code:
<frame src=&quot;myfile.doc&quot;>

I haven't used that method at all, but I know it works.

I hope you get something working, it sounds like a great project.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
hi Hawkins
you only discussed how to open a document in word/excel but i need to edit the page and save back to the web server.

i.e., the scenario is like this, i get the document as an attachment and when i click on the attachment i should be able to open the document in MS word/excel/powerpoint
and edit the document and save back to the webserver.

i hope it is clear now what i want

any help is greatly appretiated...
 
Yeah,

I know what you mean. I didn't know you wanted me to write the whole thing ;)

I imagine it would work to do as i mentioned earlier, but keep the Word/Excel content in an Iframe. Put a Save button ouside the Iframe with javascript that sets one fat hidden form variable to the &quot;innerHTML&quot; of a div that surounds the entire HTML content of the Word/Excel document. This might work better using the:
<iframe src=&quot;myfile.doc&quot;>
method of embedding the office document.

Once you get it back to the server use the FSO to write it back to the original file.

Let me know if it works. :)


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
can we use share point portal server for the requirement like this and maitain the version control....

any suggestions
 
Hi

Any body can provide guidence as how to save a word document to web server folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top