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. Web Development
  3. ASP.NET
  4. How to open Text files and PDFs ?

How to open Text files and PDFs ?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
2 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.
  • V Offline
    V Offline
    vishalmishra
    wrote on last edited by
    #1

    i m using an ASP.NET Web Appication n want to open Text files, PDFs and images on the VB.NET interface... so wat are the components which i need to open these files... so far.. the images are being opened in Internet Explorer only.. which i dont want.. i want a specific component for both images and text/PDFs need help how to do this ...

    M 1 Reply Last reply
    0
    • V vishalmishra

      i m using an ASP.NET Web Appication n want to open Text files, PDFs and images on the VB.NET interface... so wat are the components which i need to open these files... so far.. the images are being opened in Internet Explorer only.. which i dont want.. i want a specific component for both images and text/PDFs need help how to do this ...

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, For known MIME types such as image, text, word, pdf ..., the client browser normally chooses the way to open it or launchs a registered application (you can find this in the Registry settings) to open it. However, you here want to use a specific component which is able to view image, text, pdf ... file types, and I have no idea about that component, so you can try to find it on the net and Google is your friend. IMHO, you may also think of developing an ActiveX component viewer which is able to do what you want, then you can host it in your web page aspx. This component looks similar to the media player which takes the filename parameter as the input file. The reason I choose ActiveX control, but not a .Net component as it does not require the .NET framework installed on the client machine. If you neither find a third party component which you want on the net nor can develop your own, you may reconsider your approach here. Just some ideas.

      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