How Do I Insert Input Parameters in a v16 .NET Engine Application?
In v16.1, the Input Parameters have been moved from the data source object to the report object. Instead of setting IReportDataSource.Map, please set Report.Parameters.
For more details, see the v16 .NET Engine API Reference.
Here is an example code snippet for .NET Engine v16 and later.
using (AdoDataSourceImpl datasource = new AdoDataSourceImpl("System.Data.SqlClient", dbConnectionString))
{
report.ProcessSetup();
// set the variables to provide list results for each var
report.Parameters = adHocVariables;
// run the datasource
report.ProcessData(datasource, connTypeAndName);
}
0 Comments
Add your comment