How to create Business Objects from the Designer
Posted: Wed Sep 19, 2012 3:14 pm
Hello,
We are evaluating Stimulsoft for a Silverlight reporting solution but we are having issues and are stuck at this point.
We created a SQL DataSource and bound the DataBand control to the SQL query. The Silverlight preview works in the designer. However, we cannot get the report data to load from our Silverlight application using Visual Studio 2010.
Below is a code snippet. Please advise.
var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Budgeting.ReportDemo.mrt");
StiReport report = new StiReport();
report.Load(stream);
stream.Close();
stream.Dispose();
stream = null;
report.DataSources[0].ConnectOnStart = true;
report.DataSources[1].ConnectOnStart = true;
//I believe the below 2 lines are stumping us
object value = report.DataSources["MyObject"];
report.RegBusinessObject("MyObject", "MyObject",value);
report.Render();
report.Show();
We are evaluating Stimulsoft for a Silverlight reporting solution but we are having issues and are stuck at this point.
We created a SQL DataSource and bound the DataBand control to the SQL query. The Silverlight preview works in the designer. However, we cannot get the report data to load from our Silverlight application using Visual Studio 2010.
Below is a code snippet. Please advise.
var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Budgeting.ReportDemo.mrt");
StiReport report = new StiReport();
report.Load(stream);
stream.Close();
stream.Dispose();
stream = null;
report.DataSources[0].ConnectOnStart = true;
report.DataSources[1].ConnectOnStart = true;
//I believe the below 2 lines are stumping us
object value = report.DataSources["MyObject"];
report.RegBusinessObject("MyObject", "MyObject",value);
report.Render();
report.Show();