Didier Levy
Didier Levy

Reputation: 3453

winform webbrowser display pdf in same window

I have a simple question which expects a simple answer! :-)

In a visual basic .NET winform I drop a WebBrowser control

Within the form's load event script I have this: WebBrowser1.navigate("http://www.whateverWebsite.com/WhateverDocument.pdf")

Now the issue is that the webbrowser actually launches an Adobe reader new window with the PDF document, and that window is NOT part of my application. In my application the WebBrowser control says: Navigation Cancelled!!!!

What I want is the pdf file displayed within the actual WebBrowser control.

Any fix greatly appreciated.

Upvotes: 1

Views: 1641

Answers (1)

Piotr Perak
Piotr Perak

Reputation: 11088

Isn't this a setting in Adobe reader? Look for Display PDF in browser in settings.

Upvotes: 1

Related Questions