Solved

Open Office Documents Within Web Browser Control

Posted on 2006-10-23
10
283 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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
 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

827 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