How To Automate Microsoft Word From Visual Basic
Automate Microsoft Word From VB6 Home. Programming Forum Software Development Forum Discussion / Question CarterLangley 0 Newbie Poster 12 Years Ago. Hi guys, I need to put the results of a query to an acces database onto a word document. Now the query is driven by user choices so it might return one record or it might return over 300 records.
With Edraw office viewer component, it's easy for the vb developers to embed an existing word document in a form then do the word automating.The developers can also programmatically generatethe Word Document by using VB code then embed the MS Word document in a form. Notlike other word read write component, Edraw office viewer component works withthe full Microsoft Word program features.
Almost all of the tasks which weperform on word can be done programmatically like Inserting Table of Contents,Linking documents, Mail Merge, Inserting Documents, Embedding documents,inserting pictures, watermark. Etc.If you are not familiar in embedding Edraw office componentin Visual Bisic, you can refer to the following article firstly.Starting off, the first step is to include the Word objectreferences to the Solution. This can be done by right clicking the ReferenceFolder in the Solution explorer of the project and select Add Reference.Browse Through the available COM objects and SelectMicrosoft Office 11.0 Object Library & Microsoft Word 11.0 Object Library. Hp deskjet 970cse driver for mac. Emmylou harris gliding bird rar. ThisWord DLL has all the methods which we do to perform the word automation.Add Edraw Office Viewer Component in a Visual Basic Form.Automating Microsoft Word in Visual BasicThe key point is how to build the relationship between theEdraw office component and the Microsoft Word Object Module.In fact, the component provides two methods which returnthe Application and Document interface of the opened MS Word document. Thedevelopers can add the following Key Code in the DocumentOpened event of thecomponent.KEY CODE.