Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't refresh the data create from crystal reports?
Message
 
To
27/04/2002 11:20:27
F Bilo
Bilo Office
Fuyang, China
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00649981
Message ID:
00651495
Views:
34
Fbilo,

Make sure you uncheck the "Save data with report" under the file menu option. I was stumped with this one before.



>I export my data to a fox2x dbf, and create a report in crystal report 8.5,
>then add a Crystal.CrystalReport Control onto my form, code in a
>commandbutton's click method:
>
> thisform.olecontrol1.reportfileName = sys(5) + sys(2003) +
>"\reports\myrpt.rpt"
> thisform.olecontrol1.discardSavedData()
> thisform.olecontrol1.destination = 0 && crptToWindow
> thisform.olecontrol1.printreport
>
>But the preview always show me the old data.The i find the craig 's artical
>"Using Crystal Reports with VFP",and use his way :
>
>local oCryrpt, oReport
>oCryrpt = Createojbect("CrystalRuntime.Application")
>oReport = oCryrpt.OpenReport(sys(5) + sys(2003) + "\reports\myrpt.rpt")
>oReport.Database.verify()
>oReport.printout(.f.)
>
>but the data still not refresh.Can anybody help?
>
>thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform