Creating a Word document from the internet RRS feed

  • Question

  • Is it possible to create a formatted Word document from the internet without having Word installed on the web server?

    I am doing this now:

          HttpContext.Response.Buffer = true;
          HttpContext.Response.ContentType = "application/";
          HttpContext.Response.AppendHeader("Content-Disposition", "attachment; filename=test.doc");
          HttpContext.Response.Charset = String.Empty;

          HttpContext.Response.Write("Hi This is a test");


    But it is not formatted. No line breaks, spaces, tabs, etc

    Word will be installed on the user machine but not the internet machine so using the Office Object Library is not an option. Any help?


    Friday, March 25, 2011 4:12 PM


All replies