Hi Marcogol,
Follow these steps and tell me where you fail? (if needed)
(1) Create the report using crystal reports inside a folder called reports in your application path. Make sure your report is working properly without any bugs. (you can do this by refreshing report's data)
(2) Add a crystal report contrroller on your
vb form. (if you can't see crystal report control in your tollbox, go to Project-->Components-->Crystal Report Control to add crystal report control to your toolbox)
(3) In your
vb code,
Private Sub cmdPrint_Click()
' Assign report name
CrystalReport1.ReportFileName=App.Path & "\Report1.rpt"
' command to display the report
CrystalReport1.Action=1
' Set window state and other properties laso
End Sub
* Note: CrystalReport1 - Crystal report control name
Report1.rpt - crystal report name which contain in reports folder
nalaka hewage