General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only