Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List of Microsoft Word ActiveX Controls
Message
De
05/11/2002 19:41:29
Brian Leidel
Myers & Stauffer CPA's
Denver, Colorado, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
List of Microsoft Word ActiveX Controls
Divers
Thread ID:
00719121
Message ID:
00719121
Vues:
59
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
Fil
Voir

Click here to load this message in the networking platform