Solved

Open Office Documents Within Web Browser Control

Posted on 2006-10-23
10
263 Views
Last Modified: 2010-05-18
I have an application with a Microsoft Web Browser control and I would like it to force all links that are word documents to open in the browser control. The machines that will be running the browser app have Word Viewer on them. When I run the application on a machine that has office 2003, the documents open within the browser. However, when I run the application on the machines that are running word viewer (03), then the word viewer launches to open the document instead of it opening in the browser control.

The machines are running XP SP1.

Any help would be greatly appreciated.
0
Comment
Question by:jgags
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 18

Expert Comment

by:JoseParrot
ID: 17789319
Hi,

To open the Word documents as a browser plugin, that is, inside the browser window, we need Word to be installed in the machine. The workstations that have just the Viewer don't have the needed DLLs to open the documents as you plan.

Jose
0
 

Author Comment

by:jgags
ID: 17789510
Jose,  
Thanks for your reply.  

0
 

Author Comment

by:jgags
ID: 17789685
I had another thought.  How then, are documents able to open in IE if the client machine has word viewer and not word loaded on it?
0
 
LVL 18

Expert Comment

by:JoseParrot
ID: 17790888
Hi,

We can notice that when a Word document is open inside IE, we can edit it, because it is actually the Word application.  Internet Explorer or any other browser doesn't render a Word document by itself. They need the application to run in one of its container.

As a comparaison to Microsoft Word, take a look at Adobe Acrobat Reader. We must download the application from Adobe's and install it to run both the stand alone application and the PDF viewing within Internet Explorer.

In our case, Microsoft Word Viewer, as well Excel and PowerPoint viewers, provide the applications without macro and editing capabilities, and without a plugin to the browser.

Concluding, the way of open .doc, .xls and .ppt documents with only their respective viewers are to run the viewers as stand alone applications, outside the browser.

What I can suggest to circumvect this issue is your users that create Word documents to export an HTML or XML version as well, so your browser-only users can read the documents entirely in IE environment.

Unfortunately, 99% (I don't know the actual number but is very high for sure) of Word documents could be simple TXT files (or RTF) so companies are forced to buy expensive Microsoft Office to read 1% of its documents. So, another option is to convert all .doc to .html before distribute them to the internal people.

Jose
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 9

Expert Comment

by:alkisg
ID: 17791149
Did you call OleInitialize? It is needed for COM controls to function within the web browser control...
0
 

Author Comment

by:jgags
ID: 17796387
Thanks for the replies, but the solution was a simple windows explorer setting.   Check out this article:

http://support.microsoft.com/kb/178222
0
 
LVL 9

Expert Comment

by:alkisg
ID: 17797289
Didn't you say that you could already see the document inside IE?

>> I had another thought.  How then, are documents able to open in IE if the client machine has word viewer and not word loaded on it?
0
 

Author Comment

by:jgags
ID: 17798391
Yes.   But by changing the windows explorer settings (not IE settings) specified in the article, it works now for my browser application.  
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 17974315
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

920 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

15 Experts available now in Live!

Get 1:1 Help Now