I would like to add columns from query automatically like the button "retrieve columns" in edit data source. I can add named column one by one, but that not a solution.
Here a sample of my code
Code: Select all
...
var ds1 = new Stimulsoft.Report.Dictionary.StiSqlSource("Connection", "DS1", "AliasDS1", "SELECT * FROM v_courrier_standard", true, false, 600);
//test add column by column
ds1.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn("agent_adresse1", "agent_adresse1", "agent_adresse1"));
//
report.dictionary.dataSources.add(ds1);
Best regards.