crystalreport with sql select

G

Guest

Hi,
In asp.net I am trying to generate a crystal report by the method showing
below.But no data is showing in the report..for this what settings i have to
do in crystal report.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim con As New SqlConnection(connectionString)
Dim comd As New SqlCommand()
comd.Connection = con
comd.CommandText = "select suppid,invno,amt from spfile where
suppid ='"&textbox1.text&"'
con.Open()
Dim adp As New SqlDataAdapter(comd)
Dim dts As New DataSet()
adp.Fill(dts)
con.Close()
Dim cr3 As New CrystalReport1()
cr3.SetDataSource(dts)
CrystalReportViewer1.ReportSource = cr3
CrystalReportViewer1.DataBind()
CrystalReportViewer1.Visible = True
End sub
 
G

Guest

In asp.net I am trying to generate a crystal report by the method
showing below.But no data is showing in the report..for this what
settings i have to do in crystal report.

did you design the template?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top