Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
About VB.NET, Visual Studio 2010, Win7, RDLC Report...

In My project, I have used many RDLC Reports but didn't face any problem.

But since I added Report and given Report Data Source "DataSet1" which is having Inner join Query, The Report creates rows but all of them are blank (Rows with no text!)

Only text appearing in the report is of header... Other rows are balnk... I have verified all color and other minor settings.

I have checked the results putting in Data Grid View... The result is fine... So the only problem is with RDLC report which I cant understand...

Code Snippet is here...

VB
cmd.CommandText = "select a.cname,sum(j.ctot),sum(j.dtot) from acc a inner join jrn j on a.cname=j.cname where a.type='" & tabs.cmbgroup.Text & "' group by a.cname"
        da.SelectCommand = cmd
        ds.Clear()
        da.Fill(ds)
        accBindingSource.DataSource = ds.Tables(0)
        ReportViewer1.RefreshReport()
        DataGridView1.DataSource = ds.Tables(0)
Posted
Updated 25-Mar-18 7:15am
Comments
Sandeep Mewara 26-Jan-13 7:17am    
You speak of SSRS & share code for grid databind? DataGridView1.DataSource = ds.Tables(0)?

1 solution

Same problem here. I create the tableadapter where i inserted the query with the innerjoin command and i get record's back. Created the report with the correct dataset (where the tãbleadapter is inserted), inserted a tablix and made the databinding. the problem is when i run the report all the field's are blank
 
Share this answer
 
Comments
Maciej Los 25-Mar-18 13:23pm    
Do you think that OP is interested for answer after 5 years?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900