Building Reports For Microsoft Word

I am building an application for tracking inventory of a small company, and they want reports in Word format, how do I go about doing this using VB .NET?

Comments

  • : I am building an application for tracking inventory of a small company, and they want reports in Word format, how do I go about doing this using VB .NET?
    :

    Assuming that you know how to work with the MS Word Com Objects, all you need to do is go to the Project->Add Reference menu item. In there you add a Com reference to the Microsoft Word Object Library of your choice. This will create all the COM interop stuff behind the scenes and you will have a Namespace "Word." I am not fluent in Word Objects, but you will probably be using some declarations like...

    dim oWordApp as Word.Application = New Word.Application()
    dim oWordDoc as Word.Document= oWordApp.Documents.Add()


    These will give you instances of some of the objects you will likely be working with.

    -Ray
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion