I'm using Stimulsoft Report.Net.
I'm using drilldown property to pass input parameters from a report to another report.
The problem is that I'm using a SQL Connection with a connection string empty and encrypted.
For this reason the drilldown between reports doesn't work.
Code: Select all
Here i post the example of sql connection with connection string empty and encrypted.
<Databases isList="true" count="1">
<BravoReportConnection Ref="2" type="Stimulsoft.Report.Dictionary.StiSqlDatabase" isKey="true">
<Alias>BravoReportConnection</Alias>
<ConnectionStringEncrypted /> <------
<Name>BravoReportConnection</Name>
</BravoReportConnection>
</Databases>
In practice I inject the Connectionstring from outside of the report in my C# program.
Here there is an example about injection:
Code: Select all
StiReport newReport = new Stimulsoft.Report.StiReport();
newReport.Load(@"C:\....\report.mrt");
if (ContainsCS(newReport.Dictionary.Databases, "TestReportConnection"))
{
((Stimulsoft.Report.Dictionary.StiSqlDatabase)newReport.Dictionary.Databases["TestReportConnection"]).ConnectionString = ">>MyconnectionString<<";
}
//not mandatory
newReport.Dictionary.Synchronize();
//show = compile+render
newReport.Show();
Thank you.
Andrea