I have a Crystal Report that I am trying to have appear in a preview window from within my application. It works, except that it only stays on the screen for a moment, and then closes. I see the report, but how do I get the CR preview window to stay open until the user decides to close it? Here's the code I have now:
loCrystal = CREATEOBJECT('Crystal.CrystalReport')
WITH loCrystal
.ReportFileName = 'reports\summary.rpt'
.Destination = 0
.PrintReport()
ENDWITH
Thanks.