How can I send a parameter to a stored Proc in a subreport ????
I'm using Crystal reports 8.5, oracle 9i and VB6.
I'm using the OCX from crystal.
My reports uses oracle stored procedures
The problem is when I call a report from my VB application and this report has subreports I don't know how send the stored procedure parameters to a subreport. But If my report doesn't has subreports I dont have any problem.
This is the code that I'm using
With CrystalRep
.Reset
.DiscardSavedData = True
.WindowState = crptMaximized
.WindowShowSearchBtn = True
.WindowShowExportBtn = True
.ReportFileName = sRepName
.StoredProcParam(0) = "null"
.StoredProcParam(1) = "Bs"
.Connect = "UID;PWD"
iResult = .PrintReport
If iResult <> 0 Then
MsgBox .LastErrorString, 16, CStr(.LastErrorNumber)
Screen.MousePointer = vbArrow
End If
End With
Please if somebody knows how to handle this problem I really appreciate your help
Thanks!
Lorein....
I'm using Crystal reports 8.5, oracle 9i and VB6.
I'm using the OCX from crystal.
My reports uses oracle stored procedures
The problem is when I call a report from my VB application and this report has subreports I don't know how send the stored procedure parameters to a subreport. But If my report doesn't has subreports I dont have any problem.
This is the code that I'm using
With CrystalRep
.Reset
.DiscardSavedData = True
.WindowState = crptMaximized
.WindowShowSearchBtn = True
.WindowShowExportBtn = True
.ReportFileName = sRepName
.StoredProcParam(0) = "null"
.StoredProcParam(1) = "Bs"
.Connect = "UID;PWD"
iResult = .PrintReport
If iResult <> 0 Then
MsgBox .LastErrorString, 16, CStr(.LastErrorNumber)
Screen.MousePointer = vbArrow
End If
End With
Please if somebody knows how to handle this problem I really appreciate your help
Thanks!
Lorein....