Rank: Newbie Groups: Member
Joined: 1/20/2016 Posts: 1
|
Since updating to 16.0.17, Clicking a PDF Link crashes the webview with Channel Disconnected.
This appears to be an issue trying to load a plugin for a PDF Viewer.
I have come up with a workaround for this issue until it can be properly addressed.
In the ShouldForceDownload event of the webview, add the following code (This is vb.net code, C# is almost identical, C++ will need a touch up.)
If e.MimeType = "application/pdf" Then e.ForceDownload = True End If
This will allow you to download the file similar to any other normal download. Save the file where you want it.
In the webview downloadcompleted event, add something similar to the below.
If Path.GetExtension(e.Item.FullPath).tolower = ".pdf" Then Process.Start(e.Item.FullPath) End if
You will need "Imports System.IO" to use the path.getextension method. If you prefere, you can do , Process.start("cmd /c start " & e.item.fullpath). Either way, this will load your default PDF Viewer.
To make this look like part of your app, if you have EO PDF, create you a pdf viewer form and load the download into it. I only use EO Webbrowser, so I have to shell out to the windows default PDF Viewer.
I hope this helps.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Sorry about the problem. We are aware of this issue and it is already fixed in our internal build. We expect the official update build to be posted during the weekend.
Thanks!
|