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?
: 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.
Comments
:
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