Solved

View DOC and XLS in the browser Internet Explorer

Posted on 2010-08-30
8
739 Views
Last Modified: 2012-05-10
Good afternoon,

I've been through this, seek help to solve the following problem:

Development Environment: ASP / ASP.NET
Browser: Internet Explorer
Occurrence:

1 - View Word documents and Excel spreadsheet 2003 and 2007 (.doc / .docx and .xls / xlsx) in the Browser, these documents are in a shared directory on the NET.

2 - Depending on the level of access the user who is viewing it can print the document.

3 - Depending on the level of access the user who is viewing it may also make changes in the document and SAVED.

Note: No way, the user can save this document on the local computer, any change must be made in the original document located in a folder on the network. Access to this document can only be done through the web application.

We are currently studying the possibility of using a component (this component, we solve the 1st and 2nd item, but the 3 - Edit and save, I'm having trouble) provided by Aspose (Aspose Words):

http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx

That is paid, but if we could solve this problem without using this, it would be great.

Thanks,
Alcides Ribeiro Junior
0
Comment
Question by:br_ms
  • 5
  • 3
8 Comments
 
LVL 15

Accepted Solution

by:
dave4dl earned 500 total points
ID: 33563616
You can use sharepoint to accomplish wish #1, #2, and #3.  See http://en.wikipedia.org/wiki/Microsoft_SharePoint
0
 

Author Comment

by:br_ms
ID: 33566364
Dave4dl, using sharepoint would certainly be the best solution, however, the client already has a system developed in ASP.NET for managing documents, in fact, these implementations that I was asked would be just to build a module that is possible to view documents WORD, Excel spreadsheets, edit them and print when needed, all through the browser. Do you know any component to carry out these tasks? Can be either to ASP.NET or Silverlight.

Thanks,
Alcides Ribeiro Junior
0
 

Author Comment

by:br_ms
ID: 33610935
Can anyone help me? please.
0
 
LVL 15

Expert Comment

by:dave4dl
ID: 33612975
I think any web server that supports the PUT http command would let you save files (you would have to have the full version of Word and Excel on the client machines).
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 15

Expert Comment

by:dave4dl
ID: 33612987
although after reading the following post:
http://help.lockergnome.com/office/Problem-save-Word-Document-Server--ftopict617111.html

It is clear that you cannot save directly to a web server (without sharepoint).
0
 
LVL 15

Expert Comment

by:dave4dl
ID: 33613030
You could write a system that has some of the functionality you are looking for:

You could write a service that runs on the client machines that scans your temporary file locations for any .doc or .docx files (unfortunately you cannot set the temp location in Word: http://answers.yahoo.com/question/index?qid=20080416015928AAjUuqp so you have to scan all the temp folders).  If it found a .doc (or .docx) it would see if the create date and modified date are different.  If they were different, it would copy the file into a file share that points to the web server where the hosted file is stored.  It would record that it had uploaded the file at a particular time and then not upload that same file again until the modified time was after that last upload time.

This would be some of what you need but a huge problem with it is that you have no versioning or locking (so multiple people could run over each other).  You could create something that somewhat solves this problem if you inserted a version control system like Subversion into this system.  This would work by having your client service commit to your subversion codebase and another service running on the web server (or elsewhere) that continually updated the file hosted on the web server with the latest version of the file in the codebase.

There are a lot of potential problems in this process (starting with the fact that the users will be responsible for saving the file with the correct name) but it seems to be about the best you can do with the restrictions you are facing.
0
 
LVL 15

Expert Comment

by:dave4dl
ID: 33613044
I just realized that you actually never say that the file is hosted on a web server.  This could work if you open the file from a Windows share (althought the step of using a web browser is completely unnecessary and only would add complication).  If you goal in using the web browser is to avoid the need for licenses for non-free versions of Word and Excel, I think you might be out of luck, MS does a pretty good job of making sure there are no legal ways to get their products' Save functionality without buying it.
0
 

Author Closing Comment

by:br_ms
ID: 33729075
Thx
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
My experience with Windows 10 over a one year period and suggestions for smooth operation
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now