Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp6.0 Report Writer to Word document - FRX2Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00397237
Message ID:
00397397
Vues:
10
Hi Ed,



I saw this in the help file, I just wasn't sure where it went in the form?

>
oF2W = NEWOBJECT("frx2word", "msoexp") && Create instance of FRX2WORD
>oF2W.SaveFolder = "C:\My Documents\"        && directory to create .DOC in
>oF2W.DOC_FileName = "Wordout.doc"           && name of .DOC file to create
>nSuccess = oF2W.ReportForm("MyReport")      && Process MyReport.FRX to create document
Does this code go in the "load" event of the form?

How do I go about printing the report for just the one consignor my user wants.

Right now they enter the consignor code number in a textbox and it's used in the line, "repo form myreport for stnconsi_cons_no = "code number".

How do you translate that into, nsuccess = oF2W.reportform("myreport")?

TIA,

Jim Harvey
jharvey@netrax.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform