I have done report generation in VB but am new to crystal reports can anybody help me from where can I get help to start how to use crystal reports, from begining.
'Make sure Crystal points to right database
CrxRpt.Database.Tables(1).Location = strDB
& ".dbo.TableName"
For iCount = 1 To CrxRpt.ParameterFields.Count
CrxRpt.ParameterFields
(iCount).ClearCurrentValueAndRange
If CrxRpt.ParameterFields(iCount).Name = "{?RunFrom}" Then
CrxRpt.ParameterFields(iCount).AddCurrentValue
DateValue
Else
CrxRpt.ParameterFields(iCount).AddCurrentValue
DateValue
End If
Next iCount
'Any data with report wiped
CrxRpt.DiscardSavedData
'Set Viewer control
crvPM.ReportSource = CrxRpt
ERR.Clear
'So that Crystal doesn't prompt with Parameter selection
CrxRpt.EnableParameterPrompting = False
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.