Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Open Office Documents Within Web Browser Control

Posted on 2006-10-23
10
Medium Priority
?
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 18

Expert Comment

by:Jose Parrot
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 18

Expert Comment

by:Jose Parrot
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…

688 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