Torna al Thread
if (toReport is IReportableParam)
{
IReportableParam rp = (this.toReport as IReportableParam);
if (rp.Parameters != null)
{
foreach (Pair reppar in rp.Parameters)
{
try
{
this.crystalReportViewer1.ParameterFieldInfo[(string)reppar.first].CurrentValues.AddValue(reppar.second);
}
catch (Exception exc)
{
logger.Log.Warn("impossibile settare il valore per il parametro " + (string)reppar.first);
}
}
}
}
this.crystalReportViewer1.Show();