Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to open a application in IE7

How to open a application in IE7

Scheduled Pinned Locked Moved C#
csharphelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sw_tech123
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • S sw_tech123

      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

      J Offline
      J Offline
      justindhas
      wrote on last edited by
      #2

      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; } }

      S 1 Reply Last reply
      0
      • J justindhas

        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; } }

        S Offline
        S Offline
        sw_tech123
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups