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. C#
  4. Dynamically generate a MS Word document using ASP.Net

Dynamically generate a MS Word document using ASP.Net

Scheduled Pinned Locked Moved C#
csharpasp-netquestion
4 Posts 3 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.
  • J Offline
    J Offline
    john kuruvila
    wrote on last edited by
    #1

    How we can Dynamically generate a MS Word document using ASP.Net? Jijo kuruvila software developer trivandrum

    D 2 Replies Last reply
    0
    • J john kuruvila

      How we can Dynamically generate a MS Word document using ASP.Net? Jijo kuruvila software developer trivandrum

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      hi, I was going to make an article about it;) I suppose you have Word2003, ASP.NET1.1 and VS.NET2003. It may be ok with lesser verions. try some of folowing steps: 1)read MSDN - especially this[^] 2)download & install Office PIA[^] 3)reference PIA in ur project 4)run Start->ControlPanel->AdministrativeTools->ComponentServices 5)ComponentService->Computers->MyComputer->DCOMConfig find "Microsoft Word Document" and set permissons for user ASPNET 6) use Word's object to generate document... see MSDN hope it helps, I got stuck on it for a while some time ago :( best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      H 1 Reply Last reply
      0
      • J john kuruvila

        How we can Dynamically generate a MS Word document using ASP.Net? Jijo kuruvila software developer trivandrum

        D Offline
        D Offline
        DavidNohejl
        wrote on last edited by
        #3

        I can't forget these articles on CP, it may help you as well. (But they don't use PIA and lack some details, that's why I want to make another article ) http://www.codeproject.com/cs/miscctrl/winwordcontrol.asp[^] http://www.codeproject.com/aspnet/wordapplication.asp[^] David Never forget: "Stay kul and happy" (I.A.)

        1 Reply Last reply
        0
        • D DavidNohejl

          hi, I was going to make an article about it;) I suppose you have Word2003, ASP.NET1.1 and VS.NET2003. It may be ok with lesser verions. try some of folowing steps: 1)read MSDN - especially this[^] 2)download & install Office PIA[^] 3)reference PIA in ur project 4)run Start->ControlPanel->AdministrativeTools->ComponentServices 5)ComponentService->Computers->MyComputer->DCOMConfig find "Microsoft Word Document" and set permissons for user ASPNET 6) use Word's object to generate document... see MSDN hope it helps, I got stuck on it for a while some time ago :( best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          As I said in my reply (BTW, John, please hit "Submit" only once and please delete duplicate posts in the future), you must be careful using Word on a multi-threaded server application ASP.NET. It is not recommended. The caller is responsible for thread-safety in many cases. Some solutions will use pessimistic concurrency to ensure thread safety (letting only one caller run at a time and queuing the rest) and that will degrade performance becanse your multi-threaded application all of a sudden acts like a single-threaded process. Depending on your requirements, using XHTML with the right ProgID processor instruction or the Word 2003 XML Schema will allow you to use a 100% managed solution and still generate content that Word would have no problem with (and in the case of the Word 2003 XML schema - you can do everything Word can do generating a 100% compatible Word Document). This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

          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