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. .NET (Core and Framework)
  4. Read from a file and display as a report

Read from a file and display as a report

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasehelpcsharpsql-server
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.
  • K Offline
    K Offline
    krishna19
    wrote on last edited by
    #1

    Hi , I have a problem with getting content of a word, excel ,pdf document to be displayed as a report. The path of the file is stored in the database (sql server 2000 in my case) . I want the to get the path and show the contents of the file as a report ...this because i don't want to allow users to modify the contents of the file...can this be done with crystal reports or any other tool? My application is in VB.Net... Please help me with any information about this... Thanks in anticipation..

    T 1 Reply Last reply
    0
    • K krishna19

      Hi , I have a problem with getting content of a word, excel ,pdf document to be displayed as a report. The path of the file is stored in the database (sql server 2000 in my case) . I want the to get the path and show the contents of the file as a report ...this because i don't want to allow users to modify the contents of the file...can this be done with crystal reports or any other tool? My application is in VB.Net... Please help me with any information about this... Thanks in anticipation..

      T Offline
      T Offline
      Tim McCurdy
      wrote on last edited by
      #2

      No, you cannot. However, I have developer a Viewer control which views any file type that the OS can view. This was mostly done by using a webbrowser control and hooking into different events. Now, it IS possible to handle specific events and get the type of object that is being loaded into the browser. Using this, you could write another layer to your code that can handle the multiple versions of MS Office which could stop a user from modifying a Document. For PDFs it doesn't really matter, only about 5% - 10% of employees actually have a full version of Acrobat where they could actually manipulate a PDF. I cannot go into futher details because my code belongs to my company and I cannot distribute it. But the webbrowser will be your best bet. In .NET 2005, the webbrowser has been fully overhauled to be .NET friendly.

      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