b001
asked on
report
Hi Experts
i have datatable dt2 with fields
part
selling
I have report1.rdlc which has textBox1 and textBox2
how can I run report1 and bind data from dt2
part in textBox1
and
selling in textBox1
is that possible ?
Thanks
i have datatable dt2 with fields
part
selling
I have report1.rdlc which has textBox1 and textBox2
how can I run report1 and bind data from dt2
part in textBox1
and
selling in textBox1
is that possible ?
Thanks
Create the report with a ghost dataset with the fields you want Then do somehitng like
StrSql = StrSql + "Señect .........")
ReportViewer1.Reset()
ReportViewer1.LocalReport. ReportEmbe ddedResour ce = "WindowsApplication1.Repor tName.rdlc "
Conn.Open()
adap1 = New System.Data.SqlClient.SqlD ataAdapter (StrSql, Conn)
ds = New System.Data.DataSet()
adap1.Fill(ds, "Wherever")
Conn.Close()
ReportViewer1.LocalReport. DataSource s.Clear()
Dim rs As Microsoft.Reporting.WinFor ms.ReportD ataSource = Nothing
rs = New Microsoft.Reporting.WinFor ms.ReportD ataSource( "RerortDat asetGhostN ame", ds.Tables(0))
ReportViewer1.LocalReport. DataSource s.Add(rs)
ReportViewer1.AutoSize = True
Me.ReportViewer1.RefreshRe port()
Hope this help
StrSql = StrSql + "Señect .........")
ReportViewer1.Reset()
ReportViewer1.LocalReport.
Conn.Open()
adap1 = New System.Data.SqlClient.SqlD
ds = New System.Data.DataSet()
adap1.Fill(ds, "Wherever")
Conn.Close()
ReportViewer1.LocalReport.
Dim rs As Microsoft.Reporting.WinFor
rs = New Microsoft.Reporting.WinFor
ReportViewer1.LocalReport.
ReportViewer1.AutoSize = True
Me.ReportViewer1.RefreshRe
Hope this help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/ms252094(v=vs.80).aspx