Solved

Open Office Documents Within Web Browser Control

Posted on 2006-10-23
10
274 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
This is about my first experience with programming Arduino.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

777 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