Data Bind did not work

Stimulsoft Reports.WEB discussion
Post Reply
seekianshim
Posts: 31
Joined: Mon Jun 07, 2010 7:55 am
Location: Malaysia

Data Bind did not work

Post 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.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Data Bind did not work

Post by Jan »

Hello,

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

Thank you.
seekianshim
Posts: 31
Joined: Mon Jun 07, 2010 7:55 am
Location: Malaysia

Data Bind did not work

Post by seekianshim »

Hi,

I've resolved it. Thanks
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Data Bind did not work

Post by Andrew »

Great!
hadisaadat_du
Posts: 35
Joined: Tue Nov 09, 2010 2:43 pm
Location: iran

Data Bind did not work

Post 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 ??!
Post Reply