Posted 6 September 2019, 1:12 pm EST
ActiveReports v13.2.18250.0
JSViewer click the Preview button calls LocateDataSource twice
app.UseReporting(config =>
{
config.LocateDataSource = e =>
{
if (e.DataSet.Name == "DataSet1")
{
using (var con = new SqlConnection("connectionString"))
{
var table = new DataTable();
using (var reader = con.ExecuteReader("select * from table"))
{
table.Load(reader);
}
return table;
}
}
return null;
};
});