Report does not updating the data

Stimulsoft Reports.NET discussion
Post Reply
BehzadKiNG
Posts: 2
Joined: Sat Aug 03, 2013 6:40 pm

Report does not updating the data

Post by BehzadKiNG »

I have a combobox with list of customers, when choose a specific customer and make a query and send it to stimulsoft to create a report, it works correctly, but when I close the report and choose another customer the report still show the previous customer's report and does not update it.
until I close the form and reopen it, and choose other customer but when I choose another customer it it doesn't works correctly again.

Code: Select all

var results = (from x in asdb.TblCustomers
                           where x.CustID == (int)rddCustName.SelectedValue
                           select x).ToList();

            stiSpecCust.Load("Reports//SpecCustM.mrt");
            stiSpecCust.RegBusinessObject("DT", "DT", results);
            stiSpecCust.Render();
            stiSpecCust.Show();
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report does not updating the data

Post by Alex K. »

Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.
BehzadKiNG
Posts: 2
Joined: Sat Aug 03, 2013 6:40 pm

Re: Report does not updating the data

Post by BehzadKiNG »

I found the solution:

we must add this before RegBusinessObject :

Code: Select all

stiSpecCust.BusinessObjectsStore.Clear();
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report does not updating the data

Post by HighAley »

Hello.

Great! Let us know if you need any additional help.

Thank you.
Post Reply