Passing parameters using Activex to Crystal Reports from Forms 5.0
Date: 2000/05/04
Message-ID: <8es8de$8dq$1_at_nnrp1.deja.com>#1/1
I'm trying to pass a parameter (called Param in the code below) to a report made in Crystal Reports 8.0 from a form made in Dev 2k Forms 5.0.
I am using the ParameterFields procedure. The following code that performs the call is located in a WHEN-BUTTON-PRESSED trigger:
crystal_crystalctrl.ReportFileName(:ITEM('TESTACX.AX').interface, 'c:\test.rpt');
crystal_crystalctrl.Destination(:ITEM('TESTACX.AX').interface,crystal_constants.crptToWindow);
crystal_crystalctrl.ParameterFields(:ITEM('TESTACX.AX').interface,0,' Param;100;True');
Print_Result :=
crystal_crystalctrl.PrintReport(:ITEM('TESTACX.AX').INTERFACE);
When running the form, an OLE error occurs at 0x80020005, which is a type mismatch error I believe. This only occured after i put in the parameterfields procedure. Does anyone know what I am doing wrong or how to get around this?
Thanks,
Nathan
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu May 04 2000 - 00:00:00 CEST