Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Preview Report Problem
Message
From
19/07/2000 13:38:07
Walter Meester
HoogkarspelNetherlands
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00394407
Message ID:
00394413
Views:
12
Mark,

It seems that your loCrystal variable goes out of scope, therefore releasing the preview and the crystal object as well.

Walter,

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform