Hi All;
I am new to .NET. I have created a blank report and set the data source to a dataset but i do not how to add fields to the report.
I am using this code
Dim MyDataset As New DataSet()
Dim cnAccess As New OleDbConnection()
Dim SqlStr As String
sqlstr = "Select * from Customer"
cnAccess = New OleDbConnection("ConnectionString")
cnAccess.Open()
Dim cmdselect As New OleDbCommand(SqlCommand, cnAccess)
Dim damf As New OleDbDataAdapter(cmdselect)
damf.Fill(MyDataset, "custs")
dim tmp as new reportdocument()
tmp.Load("customers.rpt")
tmp.SetDataSource(MyDataset)
All This code works and doesn't produce an error.
I added only textobjects. But not fields
How can i add fields from the DataSet to the report?
Thanks in advance
I am new to .NET. I have created a blank report and set the data source to a dataset but i do not how to add fields to the report.
I am using this code
Dim MyDataset As New DataSet()
Dim cnAccess As New OleDbConnection()
Dim SqlStr As String
sqlstr = "Select * from Customer"
cnAccess = New OleDbConnection("ConnectionString")
cnAccess.Open()
Dim cmdselect As New OleDbCommand(SqlCommand, cnAccess)
Dim damf As New OleDbDataAdapter(cmdselect)
damf.Fill(MyDataset, "custs")
dim tmp as new reportdocument()
tmp.Load("customers.rpt")
tmp.SetDataSource(MyDataset)
All This code works and doesn't produce an error.
I added only textobjects. But not fields
How can i add fields from the DataSet to the report?
Thanks in advance