Hi!!, As i'm new to CR i wud be really appreciate if
someone cud sort this out. What i want to do is print
all the data from a Recordset(SQL) to a Crystal report.
I use CR8.5
Infact to make things simple i have the below code
which can print from recordset to 'VB DataReport'..
thnx!!
Mur.
someone cud sort this out. What i want to do is print
all the data from a Recordset(SQL) to a Crystal report.
I use CR8.5
Infact to make things simple i have the below code
which can print from recordset to 'VB DataReport'..
Code:
Private Sub cmdprint_Click()
With rptdynamic 'datareport
Set .DataSource = Nothing
.DataMember = ""
Set .DataSource = rsdyn.DataSource 'recordset-rsdyn
With .Sections("Section1").Controls
For i = 1 To .Count
If TypeOf .Item(i) Is RptTextBox Then
.Item(i).DataMember = ""
.Item(i).DataField = rsdyn.Fields(i - 1).Name
End If
Next i
End With
.Show
End With
End Sub
thnx!!
Mur.