Hi! Guys..
I just want to connect my Reports Created in crsytal report 9. to my System develop in Visual Basic..I can't find an answer in my MSDN so I hope that somebody will help me in my problem.
My Question is..How to Connect..? thanks in Advance Guys..
If u installed Crystal Report into ur system, so u have several component to display CR Report on ur project.
Open ur VB project. Press Ctrl+T to open Component dialoge.
Check into Crystal Report Control and Crystal Report Viewer Control.
Click Ok.
Now, u have two component on ur ToolBox.
Double click on Crystal Report Control to place into ur form.
Now, write following code
-
Private Sub Command1_Click()
-
CrystalReport1.ReportFileName = "full path to ur created report"
-
CrystalReport1.RetrieveDataFiles
-
CrystalReport1.PrintReport
-
End Sub
-
Learn more about using Crystal Report Viewer by ur-selft.