Information générale
Catégorie:
Crystal Reports
We have a reports form with the CR 9 viewer control. When a report is chosen, parameters chosen/set, and then run we populate form properties for the report like this...
.oCrystal = CREATEOBJECT("CrystalRuntime.Application")
.oReport = .oCrystal.OpenReport(.cReport)
... where .cReport is the name of the report from a table. When we open the CR viewer we also display button to close the preview so the user can return to the reports form to pick another report.
The question is this, what is the best way to close the viewer and release the report? We've tried a couple of different things, like set the .oCrystal and .oReport properties to .NULL., but if the report has parameters the CR "Enter Parameter Values" dialog appears. If we release the report shouldn't the report, and its parameter requirements, be gone?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement