Presentation is loading. Please wait.

Presentation is loading. Please wait.

Crystal Report CSC Rapid Application Development

Similar presentations


Presentation on theme: "Crystal Report CSC Rapid Application Development"— Presentation transcript:

1 Crystal Report CSC 204 2.0 Rapid Application Development
Department of Statistics and Computer Science Faculty of Applied Sciences University of Sri Jayewardanepura

2 How to Start Project  Add New Item  Crystal Reports  Add  Using the Report wizard  Standard  OK  Create New Connection  OLE DB (ADO)  Next  Microsoft OLE DB Provider for SQL Server  Next  Select Sql Server name , Database Name enter userid , password.  next  Select all fields Finish

3 Design See Reference for more

4 Call the Crystal Reports in VB
Call the Crystal Reports in VB.NET through Crystal Reports Viewer control Add CrystalReportViewer Controller Imports CrystalDecisions.CrystalReports.Engine Dim cryRpt As New ReportDocument cryRpt.Load(“Path\CrystalReport1.rpt") CrystalReportViewer1.ReportSource = cryRpt CrystalReportViewer1.Refresh()

5 App.config <?xml version="1.0"?> <configuration > <startup useLegacyV2RuntimeActivationPolicy = "true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>

6 Dim m_Report As New CrystalReport3
Form1.CrystalReportViewer1.ReportSource = m_Report m_Report.VerifyDatabase() m_Report.SetDataSource(ds.Tables(“csc”))

7 Multiple Tables Select all table from the table list
make relation between these selected tables (drag to the related field of the other table)

8 Reference Mastering VB.NET 2010 eBook www


Download ppt "Crystal Report CSC Rapid Application Development"

Similar presentations


Ads by Google