Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
List of Microsoft Word ActiveX Controls
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement