I tried to show an pdf on the WebBrowser.
I use this code:
this.webBrowser1.Navigate(@"C:\Path\PDFName.pdf");
I get all the time this Error message as an pop-up:
An error has occurred in the script on this page
Line 2
Char 1
Invalid character
Code: 0
URL: file://C:\Path\PDFName.pdf
Do you want to continue running script on this page?
Have anyone an idea?
Tahnks a lot
mjeh
Eric S - 08 Feb 2007 14:09 GMT
> I tried to show an pdf on the WebBrowser.
> I use this code:
[quoted text clipped - 13 lines]
> Tahnks a lot
> mjeh
Hi Manfred
You should maybe check the installation of the ActiveX-Object thats embedded
in your browser. So reinstalling the ActiveX-Objects (i.e. they ship with
Adobe Reader) would propably do.
Moreover its possible that the file you want to display contains incorrect
data that can´t be parsed properly.
Third and last option: check whether the ActiveX-Object is enabled in IE.
Hope this will be of use for you.
Eric