Hello,
I try to use crystal reports 2008 to replace report builder.
I use progress 9.1E.
This code works with an old version of crystal but it seems that the crviewer.dll don't work anymore with CR 2008 :
DEFINE VARIABLE crApplication AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE crReport AS COM-HANDLE NO-UNDO.
CREATE "CrystalRuntime.Application" crApplication.
CREATE "CrystalRuntime.Report" crReport.
crReport = crApplication:OpenReport("C:\Rapports\Rapport1.rpt").
chCtrlFrame:CRViewer:EnableNavigationControls = TRUE.
chCtrlFrame:CRViewer:EnableExportButton = TRUE.
chCtrlFrame:CRViewer:EnableSearchControl = FALSE.
chCtrlFrame:CRViewer:ReportSource = crReport.
chCtrlFrame:CRViewer:ViewReport().
RELEASE OBJECT crApplication.
RELEASE OBJECT crReport.
What CR Runtime i must use?
And with wich code?
Please help
Thank you
Gilles
I try to use crystal reports 2008 to replace report builder.
I use progress 9.1E.
This code works with an old version of crystal but it seems that the crviewer.dll don't work anymore with CR 2008 :
DEFINE VARIABLE crApplication AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE crReport AS COM-HANDLE NO-UNDO.
CREATE "CrystalRuntime.Application" crApplication.
CREATE "CrystalRuntime.Report" crReport.
crReport = crApplication:OpenReport("C:\Rapports\Rapport1.rpt").
chCtrlFrame:CRViewer:EnableNavigationControls = TRUE.
chCtrlFrame:CRViewer:EnableExportButton = TRUE.
chCtrlFrame:CRViewer:EnableSearchControl = FALSE.
chCtrlFrame:CRViewer:ReportSource = crReport.
chCtrlFrame:CRViewer:ViewReport().
RELEASE OBJECT crApplication.
RELEASE OBJECT crReport.
What CR Runtime i must use?
And with wich code?
Please help
Thank you
Gilles