?
Solved

Browser: Need to stop Office '03 viewers opening as seperate windows.

Posted on 2007-08-05
10
Medium Priority
?
235 Views
Last Modified: 2013-12-08
Hello,
I am developing a Browser application in VB5 with an MDIform and WebBrowser controls on Child forms.
Some of the pages we need to display within the browsers contain Word/Excel content.
I have installed the office'03 viewers (word, excel, etc)
Word97 viewer used to display the word document within the browser, but the '03 viewers open up seperate windows.
Is there a way get the '03 viewers to behave the same as the '97 ones or can I 'take ownership' of the viewer window and add it as another child window within my application?
thanks.
0
Comment
Question by:schmuck2
  • 5
  • 5
10 Comments
 
LVL 16

Expert Comment

by:gnoon
ID: 19637236
This link may similar to your problem, http://www.experts-exchange.com/Networking/Q_21876623.html.
0
 
LVL 16

Expert Comment

by:gnoon
ID: 19637296
Sorry, I answered the wrong question.
0
 
LVL 16

Expert Comment

by:gnoon
ID: 19637324
schmuck2, can you provide more information, such as code you have done.
However, this link may guide you some considerations: http://support.microsoft.com/kb/243058
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:schmuck2
ID: 19642956
Hi gnoon,
There is nothing special or different about my code, just an MDIform with toolbar controlling child forms with webBrowser controls on each.
I followed the MS link you provided above, and created the VB project as directed and it behaved the same as my application - the word/excel files open in sperate windows - not within the browser.
Are you able to test the same setup, with the '03 Word, Excel and PP viewers installed?

(points increased to 500)
0
 

Author Comment

by:schmuck2
ID: 19643172
update:
I found a possible solution here: http://www.vbcity.com/forums/topic.asp?tid=20315
But it won't work for wordview.exe or xlview.exe - they still open in seperate windows
(It works fine with notepad.exe)
help! :)
0
 
LVL 16

Expert Comment

by:gnoon
ID: 19643768
IE has a behavior seem to be like this.
If you open an office document by go to File->Open, browse for a file, and then click OK. It will be open on its own container separately from IE. But if you place the document under your IIS and locate it via the Address box, http://localhost/my2003.doc for exam, it will be open inside the IE window.

However, I tested the code in the link I provided above with v97,2002,2003 on my computer. It works fine either on a stard form and mdichild form.
My computer: win xp version 2002, sp2, office 2002 installed

Notice that VB6 has a type of form called Web Browser. Just add it as a Form.
Maybe you should try.
0
 

Author Comment

by:schmuck2
ID: 19643831
hi gnoon,
yes, it works for me as well with the full MS Office application installed, but I need it to work with the viewers, eg. Word Viewer, Excel Viewer, PP Viewer.
My application doesn't need to modify the content, only view it, and I don't want to pay for the Office license :)
thanks
0
 
LVL 16

Expert Comment

by:gnoon
ID: 19644263
Sorry, I am not familiar with those MS Viewers spec.
You may consider another solution, PDF file. You can convert a ms office document to a pdf file easily as printing using a free converter called PrimoPDF (http://www.primopdf.com/). Also, the PDF plug-in for browser is free download.
0
 

Accepted Solution

by:
schmuck2 earned 0 total points
ID: 23741180
Found a solution myself:

Used SetWindowLong & SetParent to 'grab' the viewer and insert it into my app, works a treat!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
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.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses

840 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