Report Silverlight

Stimulsoft Reports.Silverlight discussion
Locked
NadiaTeles
Posts: 15
Joined: Wed Apr 06, 2011 2:56 pm
Location: BR

Report Silverlight

Post by NadiaTeles »

Hi.

I created report silverlight with RegBusinessObject.

First Problem:
On the first time wcf returns 5 registers, the list is filled with these 5 registers and the report is presented correctly.

In the second time wcf returns 2 registers, the list is filled with these 2 registers, but the report still continues presented the previous one with 5 registers.

The code below is in method completed wcf.
void servicoWCF_ReportCompleted(object sender, ReportCompletedEventArgs e)
{

The object dataRelatorio it is filled dynamically.
filling dataRelatorio.....


System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
StreamReader sr = sr = new StreamReader(a.GetManifestResourceStream("report.mrt"));

StiReport report = new StiReport();
report.Load(sr.BaseStream);
sr.Dispose();
report.CalculationMode = StiCalculationMode.Interpretation;
report.RegBusinessObject("Data", "Data", dataRelatorio);
report.Render();
report.Show();
}
Second Problem:

On the first time when executing the report, the progressbar it does not appear, only of second in ahead.

report.Progress = new StiProgressInformation();
report.Progress.IsMarquee = true;
report.Progress.Start("Teste", "Aguarde, carregando relatório....", true);

You could insert to progressbar in the example of silverlight with RegBusinessObject.

Thankyou

Teles



Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Report Silverlight

Post by Alex K. »

Hello,
NadiaTeles wrote:First Problem:
Please try to use the following code:
...
report.RegBusinessObject("Data", "Data", dataRelatorio);
report.Dictionary.SynchronizeBusinessObjects(...)
...
NadiaTeles wrote:Second Problem:
You can use the StiSLViewerControl and call the StartProgressInformation(..) method.

Thank you.
Locked