none
Creating a Dynamic Word Document Using ASP.NET RRS feed

  • Question

  • I would like to create a dynamic Word document using ASP.NET. I don't have any experience in programming with ASP but didn't know if there was a guide on some of the basics. We offer a number of products that customers can sign up for and we have a form for each one. I would like to have all of the forms located in this document and allow the CSRs to be able to click on the products the customers want, fill out the information and then print just those selected products. I'm not sure what the difficulty level would be for something like this, so maybe I'm getting in way over my head. Any suggestions would be appreciated.
    Monday, June 11, 2012 3:20 PM

Answers

  • That's right, the use of Office COM (Word Automation) is not recommended especially in ASP.NET applications. The best option for you is Open XML SDK if you want to do a document generator yourself from scratch. This is a tedious way which requires you to learn Open XML specification. I don't want to scare you away, I just want to say that going the Open XML way is much more difficult than using Office COM to achieve the same solution. Another option is to use one of the existing solutions on the market. Check out Docentric or FlexDocs. Both products offer a template-based document generation with almost no coding, whereas the Docentric toolkit is a commercial product with a very good editor and FlexDoc is free solution.
    Friday, June 15, 2012 7:17 AM
  • Hi pantherguy,

    Welcome to the MSDN forum!

    For server-side consideration of office automation, it is recommend to use Open XML. Refer:

    Considerations for server-side Automation of Office
    http://support.microsoft.com/kb/257757

    You may check this thread:

    Dynamically create a Word Document from a Template Using ASP.NET/C#
    http://social.msdn.microsoft.com/Forums/en-CA/worddev/thread/728458e8-4d49-4067-a682-ac400128aabb 

    Thanks.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us

    Friday, June 15, 2012 6:30 AM
    Moderator

All replies

  • Hi pantherguy,

    Welcome to the MSDN forum!

    For server-side consideration of office automation, it is recommend to use Open XML. Refer:

    Considerations for server-side Automation of Office
    http://support.microsoft.com/kb/257757

    You may check this thread:

    Dynamically create a Word Document from a Template Using ASP.NET/C#
    http://social.msdn.microsoft.com/Forums/en-CA/worddev/thread/728458e8-4d49-4067-a682-ac400128aabb 

    Thanks.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us

    Friday, June 15, 2012 6:30 AM
    Moderator
  • That's right, the use of Office COM (Word Automation) is not recommended especially in ASP.NET applications. The best option for you is Open XML SDK if you want to do a document generator yourself from scratch. This is a tedious way which requires you to learn Open XML specification. I don't want to scare you away, I just want to say that going the Open XML way is much more difficult than using Office COM to achieve the same solution. Another option is to use one of the existing solutions on the market. Check out Docentric or FlexDocs. Both products offer a template-based document generation with almost no coding, whereas the Docentric toolkit is a commercial product with a very good editor and FlexDoc is free solution.
    Friday, June 15, 2012 7:17 AM