Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

WebBrowser: detecting/controlling Word Docs, PDFs, etc.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom - 06 Jul 2006 11:38 GMT
I'm using a WebBrowser control in my .NET application to display Word
documents, PDF's, etc... which I want to be able to simply Print (on
request) and Close when finished with (otherwise Word holds control of the
document, even when the WebBrowser object is closed).
(I'm developing in VB.NET, although any examples in C# are also very
welcome.)

I'm having real trouble working out the following things...
- how to detect what application has been loaded into the WebBrowser.
- how to call methods on the application once detected.

Although I can access the DOM for Word Documents, any attempt to run a
method ("Close" in particular) results in a COM exception of "(0x800A11FD):
This method or property is not available because this document is in another
application".

I'm starting to pull my hair out... so any help is greatly appreciated,
Tom  :-)
Tom - 10 Jul 2006 10:46 GMT
Apologies, but I'm bumping this in the hope that somebody who knows an
answer didn't see it originally!!

> I'm using a WebBrowser control in my .NET application to display Word
> documents, PDF's, etc... which I want to be able to simply Print (on
[quoted text clipped - 14 lines]
> I'm starting to pull my hair out... so any help is greatly appreciated,
> Tom  :-)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.