ASP.NET
Code: Select all
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
var report = new StiReport();
report.Tag = "Test";
report.RegData("SharePoint", SharePointDataSourceFactory.SharePointDataSource);
report.Dictionary.Synchronize();
this.SilverlightReport.Report = report;
}
protected void SilverlightReportGetPreviewDataSet(object sender, StiWebDesignerSL.StiPreviewDataSetEventArgs previewDataSetEventArgs)
{
var dataTables = StiDataSourceHelper.GetUsedDataSourcesNames(previewDataSetEventArgs.Report).Keys.Cast().ToArray();
foreach (var dataTable in dataTables)
{
SharePointDataSourceFactory.PopulateSharePointDataSource(dataTable);
}
var ds = SharePointDataSourceFactory.SharePointDataSource;
previewDataSetEventArgs.PreviewDataSet = ds;
}
I do not