Hi,
I am using open Edge and Crystal Report 7.0 on windows 2000 paltform. I made an odbc connection for the database so that i can use Progress Open Edge Database in Crystal Report 7.0 and i have made a crystal Report "abc.rpt" file. I want to filteres data and called the specific report from Open Edge GUI Application. I am using Crystal Report Viewer crviewer.dll ocx in the Progress windows and using the code below :
DEFINE VARIABLE CRComHdl AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE CRViewer AS COM-HANDLE NO-UNDO.
CREATE "Crystal.CRPE.Application":U CRComHdl.
Assign crviewer = crcomhdlpenReport("c:\crydb\report\CustInformation.rpt", 1).
CRViewer = chctrlFrame:ITEM(1).
/*CRViewer:viewreport. */ if i remove the comments then it will give the error message.
RELEASE OBJECT crcomhdl.
If i give the crviewer:viewreport() then it give the error message "Invalid Component-Handle referenced while processing method/statement: Viewreport, Initialize object abc.w.
If i give in the comments or remove this line then it will show the window but it not open the report. Please help me or give any example of how can i call a crystal report from a progress GUI Apllications.
Please send me your valuable suggestion and help.
Regards,
Akumar
I am using open Edge and Crystal Report 7.0 on windows 2000 paltform. I made an odbc connection for the database so that i can use Progress Open Edge Database in Crystal Report 7.0 and i have made a crystal Report "abc.rpt" file. I want to filteres data and called the specific report from Open Edge GUI Application. I am using Crystal Report Viewer crviewer.dll ocx in the Progress windows and using the code below :
DEFINE VARIABLE CRComHdl AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE CRViewer AS COM-HANDLE NO-UNDO.
CREATE "Crystal.CRPE.Application":U CRComHdl.
Assign crviewer = crcomhdlpenReport("c:\crydb\report\CustInformation.rpt", 1).
CRViewer = chctrlFrame:ITEM(1).
/*CRViewer:viewreport. */ if i remove the comments then it will give the error message.
RELEASE OBJECT crcomhdl.
If i give the crviewer:viewreport() then it give the error message "Invalid Component-Handle referenced while processing method/statement: Viewreport, Initialize object abc.w.
If i give in the comments or remove this line then it will show the window but it not open the report. Please help me or give any example of how can i call a crystal report from a progress GUI Apllications.
Please send me your valuable suggestion and help.
Regards,
Akumar