none
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.Clear();
          HttpContext.Response.Buffer = true;
          HttpContext.Response.ContentType = "application/vnd.ms-word";
          HttpContext.Response.AppendHeader("Content-Disposition", "attachment; filename=test.doc");
          HttpContext.Response.Charset = String.Empty;

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

     

    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?

    Thanks

    Friday, March 25, 2011 4:12 PM

Answers

All replies