I am evaluating stimulsoft reports with our silverlight solution.I am using trial version of Stimulsoft-Reports-Silverlight-2015.3. I cannot see that documentation itself is much useful in terms of silverlight. I have implemented the solution according to the WCF sample given here
https://www.stimulsoft.com/en/news/wcf- ... ew-version
Following are the flow of the my report designer
1) Reading a dummy template from server via wcf and return it as byte array
2) Trying to preview the data in the preview button.I am trying to achieve it via WCFService_WCFRenderReport event . I am using following helper method given in the sample to set the report xml with data set .
Code: Select all
public static string RenderReport(string xml, DataSet previewDataSet)
{
string result = null;
if (!string.IsNullOrEmpty(xml))
{
var report = new StiReport();
report.LoadFromString(StiSLEncodingHelper.DecodeString(xml));
if (previewDataSet != null)
report.RegData(previewDataSet.DataSetName, previewDataSet);
if (!report.IsRendered)
{
try
{
report.Compile();
}
catch
{
}
if (report.CompilerResults.Errors.Count > 0)
return StiSLRenderingReportHelper.GetErrorListXml(report);
}
bool error = false;
try
{
report.Render(false);
}
catch
{
error = true;
}
if (!error)
result = StiSLRenderingReportHelper.CheckReportOnInteractions(report, true);
}
return result;
}
1) How i can i register data dictionary to show it as a data source in the designer.? If i am able to do that ,then i can design the template according to the dictionary structure.
2) How can i register a Jason object as a data dictionary in code? and how can i populate the relevant data ? Can is use above helper class implementation to populate the data for the report which is created based on the Jason data dictionary ?
Regards
Thabo