Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List of Microsoft Word ActiveX Controls
Message
From
05/11/2002 19:41:29
Brian Leidel
Myers & Stauffer CPA's
Denver, Colorado, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
List of Microsoft Word ActiveX Controls
Miscellaneous
Thread ID:
00719121
Message ID:
00719121
Views:
58
Novice question here, but I'm just looking for documentation for VFP's ActiveX controls in Microsoft Word 2000. Right now I'm just fumbling around with trial and error. I want to know what all of the properties and methods are for Content, ActiveDocument, Documents, etc. and how to use them.

I'm using the FRX2Word tool to create .DOC files in Word from VFP reports, and I want to be able to merge several reports together to create one long Word document. My users don't like VFP's built in report preview, because they want to be able to view and search several reports together without closing or hitting buttons to go back and forth.

The InsertFile method does not work on this, by the way, because of the weird formatting the FRX2Word tool does.

My little program is looking like this right now. I need access to ActiveX controls documentation to do more:

PARAMETERS ReportName

m.ReportToWord=NEWOBJECT("frx2word","msoexp")
ReportToWord.SaveFolder="C:\Temp\"
ReportToWord.DOC_FileName=m.ReportName+".DOC"
ReportToWord.ReportHome="M:\VLTC\Reports\"
m.Successful=ReportToWord.ReportForm(m.ReportName)

m.OpenWord=CREATEOBJECT("Word.Application")
OpenWord.Documents.Open(ReportToWord.SaveFolder+ReportToWord.DOC_FileName)
OpenWord.Visible=.T.

Thanks!
Brian
Next
Reply
Map
View

Click here to load this message in the networking platform