Page 1 of 1
How Send a DataSet With 2 DataTable to Report
Posted: Tue Aug 28, 2012 1:34 pm
by p30help
i work with c# and Connect my c# program to stimulsoft.
i send a dataset with 2 datatable to my report with Below Code:
Code: Select all
DataSet ds = new DataSet();
dtP.TableName = "dtP";
dtF.TableName = "dtF";
ds.Tables.Add(dtP);
ds.Tables.Add(dtF);
Report.RegData(ds);
Report.Show();
and "Report" is stireport object.
when my report page shown. my report is empty. why?
And when sent just 1 datatable as Dataset to my report that's work well.
how solve my problem?
Re: How Send a DataSet With 2 DataTable to Report
Posted: Wed Aug 29, 2012 6:08 am
by Alex K.
Hello,
Can you please send us a sample project which reproduces the issue for analysis.
Thank you.
Re: How Send a DataSet With 2 DataTable to Report
Posted: Wed Aug 29, 2012 7:22 am
by p30help
Aleksey wrote:Hello,
Can you please send us a sample project which reproduces the issue for analysis.
Thank you.
hi
i attach sample of report file in this post.
please analysis and Help me to Solve my problem.
Re: How Send a DataSet With 2 DataTable to Report
Posted: Wed Aug 29, 2012 12:58 pm
by HighAley
Hello.
There is no data for your report. We couldn't reproduce your issue.
Please, send us a working sample project which reproduced the issue.
Thank you.
Re: How Send a DataSet With 2 DataTable to Report
Posted: Wed Aug 29, 2012 6:35 pm
by p30help
Aleksey Andreyanov wrote:Hello.
There is no data for your report. We couldn't reproduce your issue.
Please, send us a working sample project which reproduced the issue.
Thank you.
Hi Again
I Attach C# Project File in This Post.
In /bin/debug Folder Can Find test.mrt File.
Thanks....
Re: How Send a DataSet With 2 DataTable to Report
Posted: Thu Aug 30, 2012 8:29 am
by HighAley
Hello.
You are adding a DataSet with different name. You could see it if call Design() instead of Show() method.
Please use next code to avoid this problem:
Code: Select all
objStiReport.Dictionary.Clear();
objStiReport.RegData(ds);
objStiReport.Dictionary.Synchronize();
Thank you.
Re: How Send a DataSet With 2 DataTable to Report
Posted: Thu Aug 30, 2012 9:25 am
by p30help
Aleksey Andreyanov wrote:Hello.
You are adding a DataSet with different name. You could see it if call Design() instead of Show() method.
Please use next code to avoid this problem:
Code: Select all
objStiReport.Dictionary.Clear();
objStiReport.RegData(ds);
objStiReport.Dictionary.Synchronize();
Thank you.
Hi
Thanks a lot.
I change my code and Now My program Work Well.
Thanks Again...
Re: How Send a DataSet With 2 DataTable to Report
Posted: Thu Aug 30, 2012 1:13 pm
by HighAley
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.