How to open a application in IE7
-
Hi every body, Here i face a problem,the problem is i develop a pdf viewer,now i uninstall acrobat reader from my pc. when i open a web page that contain pdf, open a new window with pdf viewer application. I want to open in IE like acrobat reader in IE. Please help me. using C#,.Net frame work 2.0:confused:
Sanjoy Bagchi S/W Engineer
-
Hi every body, Here i face a problem,the problem is i develop a pdf viewer,now i uninstall acrobat reader from my pc. when i open a web page that contain pdf, open a new window with pdf viewer application. I want to open in IE like acrobat reader in IE. Please help me. using C#,.Net frame work 2.0:confused:
Sanjoy Bagchi S/W Engineer
Sample.aspx: Script File: document.getElementById('ifr').src='LoadPdf.aspx'; In LoadPdf.aspx.CS .PageLoad Event U call This Method private void WritePdf(byte[] pdfContent) { try { Response.ContentType = "application/pdf"; Response.OutputStream.Write(pdfContent, 0, (int)pdfContent.Length); Response.Flush(); Response.Close(); } catch (Exception ex) { throw ex; } }
-
Sample.aspx: Script File: document.getElementById('ifr').src='LoadPdf.aspx'; In LoadPdf.aspx.CS .PageLoad Event U call This Method private void WritePdf(byte[] pdfContent) { try { Response.ContentType = "application/pdf"; Response.OutputStream.Write(pdfContent, 0, (int)pdfContent.Length); Response.Flush(); Response.Close(); } catch (Exception ex) { throw ex; } }
Sir,in my pc there is no acrobat reader. there install my program to view pdf. i wrote your program but the error msg came like this " An invalid character was found in text content. Error processing resource 'http://localhost:1891/WebSite1/LoadPdf.aspx'. L... % " please help me...
Sanjoy Bagchi S/W Engineer