Click here to Skip to main content
15,895,084 members

Comments by Member 8584763 (Top 146 by date)

Member 8584763 5-Aug-15 6:08am View    
Deleted
What's the wrong it generates empty sql file?
Member 8584763 19-Apr-13 5:35am View    
I solved it. the problem were in the index, but when I changed it to the table name it works fine.

Thank you.
Member 8584763 18-Apr-13 15:16pm View    
No, I don't.
Member 8584763 16-Apr-13 13:58pm View    
I did like the site you put, but still there're no results...

Here's my code.

<pre lang="c#">
private DataTable getData()
{

con.Open();
DataSet1 dss = new DataSet1();
string sql = "select product_id, product_name,product_quantity from product";
SqlDataAdapter da = new SqlDataAdapter(sql, con);
da.Fill(dss);
DataTable dt = dss.Tables["product"];

return dt;
}

private void runRptViewer()
{
reportViewer1.LocalReport.DataSources.Clear(); //clear report
reportViewer1.LocalReport.ReportEmbeddedResource = "Report1.rdlc"; // bind reportviewer with .rdlc
Microsoft.Reporting.WinForms.ReportDataSource dataset = new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", getData()); // set the datasource
reportViewer1.LocalReport.DataSources.Add(dataset);
reportViewer1.LocalReport.Refresh();
reportViewer1.RefreshReport();
}

</pre>
Member 8584763 16-Apr-13 12:57pm View    
I did like you said but there are no result s