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 / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

System.Windows.Forms.WebBrowser and PDF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
manfred - 06 Feb 2007 15:53 GMT
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

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.