If (url.StartsWith("res://ieframe.dll/navcancl.htm") & url.EndsWith("pdf"))īut found the open, save cancel event precedes the webBrowser1_Navigating. Over the years, this software has become the standard choice for sharing. I have tried private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e) Bluefire Reader is designed with Download Adobe Acrobat Reader: Edit PDF 23. I would like to be able to intercept this so as to Indicate that Adobe's reader is not available. Open and interact with all types of PDF content including forms and multimedia. If Adobe pdf Reader is not loaded, a prompt appears to open(in any other installed reader), save the file or cancel. Adobe Acrobat Reader is the free, trusted global standard for viewing, printing, e-signing, sharing, and annotating PDFs. String acroReadVersions = acroRead.GetSubKeyNames() Ĭonsole.WriteLine("The following version(s) of Acrobat Reader are installed: ") įoreach (string versionNumber in acroReadVersions) RegistryKey acroRead = adobe.OpenSubKey("Acrobat Reader") Var policies = ("Software").OpenSubKey("Policies") RegistryKey adobe = ("Software").OpenSubKey("Adobe") I have also tried the 64 bit code in the same article but find errors I can't easily resolve and suspect would give the same result anyway as it simmply looks at the registry in a similar way. I have adapted the following code from here Check Adobe Reader is installed (C#)?Īs mentioned in the comments, unfortunately, it flags uninstalled versions as well. I would like to check if Adobe Acrobat Reader is installed before displaying the window, or at least when trying to display the pdf. It works perfectly if Adobe Reader is installed I have an application that displays a pdf in a webBrowser control, using the following code webBrowser1.Navigate(filename + "#toolbar=0")
0 Comments
Leave a Reply. |