CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    1

    Question howo to populate word document

    hai friends
    i want to generate word document by populationg it with the values fethed from sql server database
    can u tell me thay way to do it

  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: howo to populate word document

    1. Word automation

    Adv: ????
    Disadv:

    you need to have word application in the machine that creates the word document.
    Great care needed when you program. If you don't program carefully (fail to release the COM object properly), word applicaiton won't close when you call "Quit" method. you will see mutiple instance of word application running in the background.

    2. Third party components:

    Adv: Easy to use. Some of them are written in .NEt itself. So, no overhead of marshalling and all.

    DisAdv: you need to pay per license. If the word version changes in future, you may need to upgrade the Thirdparty component.

    3. Creating rtf file:

    Adv: cross platform. small file size. no licensing or dependency of any application.
    DisAdv: big learning curve. you need to learn the entire rtf specification if you want to create the component on your own.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured