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. Display Word Document in browser

Display Word Document in browser

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
4 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
    kalyanPaladugu
    wrote on last edited by
    #1

    How do i display a Microsoft Word Document in Browser in ASP.NET Any Ideas Thanks Kal

    T 1 Reply Last reply
    0
    • K kalyanPaladugu

      How do i display a Microsoft Word Document in Browser in ASP.NET Any Ideas Thanks Kal

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      string Fname = "c:\yourFile.doc"; Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "application/vnd.ms-word"; Response.WriteFile(Fname); Response.Flush(); Response.Close();


      how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

      K 1 Reply Last reply
      0
      • T ToddHileHoffer

        string Fname = "c:\yourFile.doc"; Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "application/vnd.ms-word"; Response.WriteFile(Fname); Response.Flush(); Response.Close();


        how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

        K Offline
        K Offline
        kalyanPaladugu
        wrote on last edited by
        #3

        I tried that I created a page and wrote those things in the Page_Load Event and its throwing up an error. Am i doing some thing wrong. This is error An invalid character was found in text content. Error processing resource 'http://localhost:2550/TestWebsite/Test.aspx'. Can you please help me

        T 1 Reply Last reply
        0
        • K kalyanPaladugu

          I tried that I created a page and wrote those things in the Page_Load Event and its throwing up an error. Am i doing some thing wrong. This is error An invalid character was found in text content. Error processing resource 'http://localhost:2550/TestWebsite/Test.aspx'. Can you please help me

          T Offline
          T Offline
          ToddHileHoffer
          wrote on last edited by
          #4

          Sorry my bad. fix this line Response.ContentType ="application/msword";


          how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

          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