Page 1 of 1

Data Bind did not work

Posted: Mon Jun 07, 2010 8:04 am
by seekianshim
Hi, I'm tried to bind the data with DataTable in C#. Below is my code,

private void ReportBinding(object obj)
{
StiReport report = new StiReport();
report.Load(HttpContext.Current.Server.MapPath(string.Empty) + "\\Report02.mrt");

report.RegData("Customer", (DataTable)obj);

StiWebViewer1.Report = report;
}


I've checked the record in obj, its show me 1 record but the report showing record count is same as CommandText as report designer.
Its did not take effective after I'm RegData.


I've tried with added 2 lines of code after report.RegData but it still the same

report.Dictionary.Synchronize();
report.Compile();


Could you please help me on this?
Thanks.

Data Bind did not work

Posted: Mon Jun 07, 2010 10:00 am
by Jan
Hello,

We need check your report. Please attach it to this topic or send it to support@stimulsoft.com

Thank you.

Data Bind did not work

Posted: Wed Jun 09, 2010 12:05 pm
by seekianshim
Hi,

I've resolved it. Thanks

Data Bind did not work

Posted: Wed Jun 09, 2010 12:50 pm
by Andrew
Great!

Data Bind did not work

Posted: Tue Nov 09, 2010 3:12 pm
by hadisaadat_du
Hi every body.
I sea allmost all topic in forum and seem int all of them posit that we know what is our tables and columns in dataset of our reportbut allways not thus
1-sometime we may want to edit the report in webdesigner that we dont know any thing about its data set but we sure it works with our data base , so befor call the design() function we pass what data set to our report via regdata(//what_dataset) ??
2- or we may want to set full access to data base to one user to create the every report that need to design well we pass a full data base to designer dictionary and he/she design every report by every columns in every tables or viwes in database and save it , in viwe report mode namely after load our report and we want to pass it to stiwebviewer we pass what data set to it since we cant pass all data base to our report ??!