I add a StiSqlDatabase to report as below:
Code: Select all
public StiDatabase GetDatabase()
{
return new StiSqlDatabase("Database", Options.ConnectionString);
}
// In Controller
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(ReportHelper.GetDatabase());
Pleas see attached images.