Code: Select all
SqlConnection connection = new SqlConnection(connectionString);
connection.Open();
StiReport report = new StiReport();
report.RegData("azure", connection);
StiWebDesigner1.Design(report);
this is a web reports behavour.
Same code in windows form application (last line changed to report.Design();) works perfect, and show "Connections" Dictionary with "azure" item.
yes, of cource, i can use following code:
Code: Select all
report.Dictionary.Databases.Add(new StiSqlDatabase("azure", connectionString));