Dheerajpro 0 Newbie Poster

hello frnd i hav created crystal report my
database name is schools
and its giving exception
,,,,,,,,,
exception in form loading

my coding is


<crystal report>

Imports CrystalDecisions.CrystalReports.Engine
Imports System.Data.SqlClient

Public Class CRSTECHERS

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


End Sub

Private Sub CRSTECHERS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cryRpt As New ReportDocument
cryRpt.Load("Data Source=.\DHEERAJ;AttachDbFilename=D:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\schools.mdf;Integrated Security=True;User Instance=false;initial catalog=schools")
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()

End Sub
End Class

</crystal report>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.