M
Madhuri_S
Guest
Our is a Windows Application .In win form we are trying to open the PDf file using Web Browser Control. Blank Page is shown when we are trying to open it in win 8 64- bit OS ,IE 10 and Acrobat reader (11.0.03) – 32 bit .It is working fine in Win 8 32 –bit OS,IE 10 and Acrobat reader (11.0.03) – 32 bit.
Please find the code used below
public ReportViewer(string path)
{
InitializeComponent();
webBrowser1.Navigate(path);
webBrowser1.GoBack();
}
Instead of Webbrowser1.Navigate(path) we have used webBrowser1.Navigate(path, true) which allows Pdf to open in IE and it is working fine. But we want it to open in winform.Tried setting up user agent as shown below ,but no luck
webBrowser1.Navigate(path,null,null,"User-Agent: Mozilla/5.0 (compatible; MSIE 9.0)");
Could you please suggest a solution for this
Continue reading...
Please find the code used below
public ReportViewer(string path)
{
InitializeComponent();
webBrowser1.Navigate(path);
webBrowser1.GoBack();
}
Instead of Webbrowser1.Navigate(path) we have used webBrowser1.Navigate(path, true) which allows Pdf to open in IE and it is working fine. But we want it to open in winform.Tried setting up user agent as shown below ,but no luck
webBrowser1.Navigate(path,null,null,"User-Agent: Mozilla/5.0 (compatible; MSIE 9.0)");
Could you please suggest a solution for this
Continue reading...