I'm using VB6 with CR9, I have a report that has a parameter that I'm trying to pass from vb. This is the code that I'm using but it keeps giving me an error stating that subscript is out of range.
The report is in the VB project as a Designer.
CrystalReport2.DiscardSavedData
CrystalReport2.PrinterSetup frmMain.hwnd
CrystalReport2.PrinterDuplex = crPRDPVertical
CrystalReport2.ParameterFields(0) = "PledgeNum;" & VBPledgeFieldNum & ";True"
CrystalReport2.PrintOut False, 1, False
Any help is appreciated. Thanks in advance
The report is in the VB project as a Designer.
CrystalReport2.DiscardSavedData
CrystalReport2.PrinterSetup frmMain.hwnd
CrystalReport2.PrinterDuplex = crPRDPVertical
CrystalReport2.ParameterFields(0) = "PledgeNum;" & VBPledgeFieldNum & ";True"
CrystalReport2.PrintOut False, 1, False
Any help is appreciated. Thanks in advance