Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports
Message
De
19/12/1998 08:53:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Crystal Reports
Divers
Thread ID:
00169106
Message ID:
00169106
Vues:
50
I am using Crystal Reports Automation Server in my application. I have create a modal form with an optiongroup control to allow the user the choice of previewing or printing the report. In the Click event of the OK button I have this code:

local oCrystal, oReport

oCrystal = CreateObject("Crystal.CRPE.Application")
oReport = oCrystal.OpenReport(ThisForm.cFileName)

do case
case ThisForm.optDestination.Value = 1
oReport.Preview
case ThisForm.optDestination.Value = 2
oReport.PrintOut
endcase

The problem is, when the user previews the report, the preview window is displayed and immediately closes.

How do I make the preview window remian viewable until the user chooses to close it?
Thanks,
Dan Jurden
djurden@outlook.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform