How to automate Word from Visual FoxPro and add a table to a document (250501)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
- Microsoft Word 2002
- Microsoft Word 2000
- Microsoft Office Word 2003
This article was previously published under Q250501 SUMMARY
This article describes how to Automate Microsoft Word 97, Microsoft Word 2000, Microsoft Word 2002, or Microsoft Office Word 2003 from Microsoft Visual FoxPro 6.0 and later versions of Visual FoxPro to do the following: - Create a new document.
- Add text and a table to the document.
- Format the text.
- Format the table.
- Populate the table with data.
REFERENCES
For additional information about the Microsoft Office (including Microsoft Word) Object Model and how to Automate, click the following article number to view the article in the Microsoft Knowledge Base:
222101
How to find and use Office object model documentation
160064 How to convert VBA to FoxPro for OLE automation
181926 How to automate mail merge to Word 97 SR-1 using OLE and ODBC
172847 How to cut and paste from general field into a Word document
171988 How to pass parameters to a Word 97 macro
176069 How to print a range of pages in Word using OLE automation
180901 How to create categorized table in Word 97 w/ OLE automation
240809 How to prevent Switch To or Application Busy message using OLE
245782 Find information on the Office 97/2000 application's object
198508 How to insert and format a picture in Word 97 w/ OLE automation
195404 How to keep Word print dialog box on top using APIs
175173 How to use Word to print general fields in Report Designer
Modification Type: | Major | Last Reviewed: | 2/16/2005 |
---|
Keywords: | kbAutomation kbhowto kbSample KB250501 kbAudDeveloper |
---|
|