I'm doing a report in silverlight code follows:
Code: Select all
try
{
System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
//Carrega o arquivo de recurso referente ao modelo de relatório selecionado
StreamReader reader = reader = new StreamReader(a.GetManifestResourceStream(strArquivo));
StiReport report = new StiReport();
report.Load(reader.BaseStream);
reader.Close();
reader.Dispose();
report.CalculationMode = StiCalculationMode.Interpretation;
report.RegBusinessObject("Data", "Data", dataRelatorio);
report.Render();
report.Show();
}
catch (Exception ex)
{
C1MessageBox.Show(ex.ToString());
}
Can anyone help me?
Tanks
Eduardo Agostinho