Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > creating a word document - do you know where to look? Help Please...
 

creating a word document - do you know where to look? Help Please...

Hi, I need to create a word document, formatted and based off of information gathered from the user and stored in an Access database locally on their machines. Any help is appreciated.
eXodus0426  Friday, May 18, 2007 1:38 PM

eXodus0426,

According to your question, I would like to recommend you two articles on the issue and hope that can help you:

1. How To: Dismiss a Dialog Box Displayed by an Office Application with Visual Basic .NET

http://support.microsoft.com/kb/307292/

When you are automating an Office application from Visual Basic .NET, the Office application may display a dialog box. The dialog box causes the Visual Basic .NET application to appear to stop responding (hang) because the Visual Basic .NET application is waiting for the dialog box to be dismissed. The dialog box must be dismissed before the Visual Basic .NET application can continue.

This article discusses how to use the object models for Office applications to avoid dialog boxes during Automation. It also provides a step-by-step example of how to simulate user input to programmatically dismiss a dialog box that cannot be avoided by using the usual properties and methods that are exposed in the object models.

2. Take Control of Microsoft Word Through Events

http://msdn2.microsoft.com/en-us/library/aa140279(office.10).aspx

3. Creating and Opening Microsoft Word Documents from .NET Using C#

http://www.c-sharpcorner.com/UploadFile/mgold/WordFromDotNet11082005235506PM/WordFromDotNet.aspx

Bruno Yu  Thursday, May 24, 2007 7:28 AM
More specifically, how do I get information from the database? I've got the iteration down, I need to set information from the database to locally created variables in order to print them to a word document (which I also have figured out).
eXodus0426  Friday, May 18, 2007 3:08 PM
Nevermind about the pulling from database, I got it, but how do you center and use bullets from VB?
eXodus0426  Friday, May 18, 2007 3:35 PM

eXodus0426,

According to your question, I would like to recommend you two articles on the issue and hope that can help you:

1. How To: Dismiss a Dialog Box Displayed by an Office Application with Visual Basic .NET

http://support.microsoft.com/kb/307292/

When you are automating an Office application from Visual Basic .NET, the Office application may display a dialog box. The dialog box causes the Visual Basic .NET application to appear to stop responding (hang) because the Visual Basic .NET application is waiting for the dialog box to be dismissed. The dialog box must be dismissed before the Visual Basic .NET application can continue.

This article discusses how to use the object models for Office applications to avoid dialog boxes during Automation. It also provides a step-by-step example of how to simulate user input to programmatically dismiss a dialog box that cannot be avoided by using the usual properties and methods that are exposed in the object models.

2. Take Control of Microsoft Word Through Events

http://msdn2.microsoft.com/en-us/library/aa140279(office.10).aspx

3. Creating and Opening Microsoft Word Documents from .NET Using C#

http://www.c-sharpcorner.com/UploadFile/mgold/WordFromDotNet11082005235506PM/WordFromDotNet.aspx

Bruno Yu  Thursday, May 24, 2007 7:28 AM

You can use google to search for other answers

Custom Search

More Threads

• fileter one dataset into another dataset
• External visual basic EXE !
• Resizing / Moving FormBorderStyle=none Form
• i want to open a url in a browser and i want to move cursor all over the brower???
• Copying string to a text file
• Sending SNMP Traps?
• Manipulating an object
• How to find exact match for a ValueMember
• Switching Keyboard Keys
• .doc char counts?