datasource change?

Stimulsoft Reports.NET discussion
Post Reply
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

datasource change?

Post by abi »

hai..

i try change my datasource but it still exeture old query, i use mysql provider

this my code on my program:

Code: Select all

string il1 = String.Format("CALL getbyDate(\'{0}\',\'{1}\',\'{2}\')", Keyword, Date1, Date2);
string il2 = String.Format("CALL getbyDateIdCom(\'{0}\',\'{1}\',\'{2}\',{3})", Keyword, Date1, Date2, IdCom);
string cSql = IdCom == 0 ? il1 : il2;

StiMySqlSource source = Report.Dictionary.DataSources["dsHeader"] as StiMySqlSource;
source.SqlCommand = cSql;
may you help me?

thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

datasource change?

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Please send us a simple test application which reproduces the problem.

Thank you.
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

datasource change?

Post by abi »

sorry late..

i change my code..

work fine again

thanks.

tips:
-change connection before report compiling
-change report variable after compiling report
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

datasource change?

Post by Andrew »

Hello,

Thank you for letting us know about this.

Have a nice day!
Post Reply