Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp6.0 Report Writer to Word document - FRX2Word
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00397237
Message ID:
00397397
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform