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. Opening a document file in a formatted way.

Opening a document file in a formatted way.

Scheduled Pinned Locked Moved ASP.NET
databasesysadminhelpcareer
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.
  • B Offline
    B Offline
    Biswa Pujarini Mohapatra
    wrote on last edited by
    #1

    I am working on a jobsite project.When a user upload his resume it is saved as a document file in a folder.My requiremnt is when the user wants to edit his/her profile his resume should be opened and displayed to him as he/she uploaded it with all formatted text.I im able to locate and open the file but i am notable to show it in a formatted way to the user. the code written by me is: Dim strContents As String Dim objReader As StreamReader objReader = New StreamReader(Server.MapPath("Resume\") & filepath) strContents = objReader.ReadToEnd() objReader.Close() lbl_ResumeDetail.Text = strContents filepath is a string variable in which i am accessing the filename from the database. Your help in this regard will be highly beneficial and awaited. Madhulika Agarwal.

    S 1 Reply Last reply
    0
    • B Biswa Pujarini Mohapatra

      I am working on a jobsite project.When a user upload his resume it is saved as a document file in a folder.My requiremnt is when the user wants to edit his/her profile his resume should be opened and displayed to him as he/she uploaded it with all formatted text.I im able to locate and open the file but i am notable to show it in a formatted way to the user. the code written by me is: Dim strContents As String Dim objReader As StreamReader objReader = New StreamReader(Server.MapPath("Resume\") & filepath) strContents = objReader.ReadToEnd() objReader.Close() lbl_ResumeDetail.Text = strContents filepath is a string variable in which i am accessing the filename from the database. Your help in this regard will be highly beneficial and awaited. Madhulika Agarwal.

      S Offline
      S Offline
      suyuan1984
      wrote on last edited by
      #2

      which allows you to upload the file format?

      my english is very bad!

      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