I'm using the ReportViewer to generate a report and also using SubReports, but when I open the report I get the following error message in SubReports: "THE SUBRELATORIO WAS NOT POSSIBLE"
Someone has a solution, below is the code that generates the report
public frmLaudosPS()
{
InitializeComponent();
}
void SubreportProcessingEventHandler(object sender, SubreportProcessingEventArgs e)
{
e.DataSources.Add(new ReportDataSource("DSLaudosPS", this.LaudoTecnicoBindingSource));
this.LaudoTecnicoTableAdapter.Fill_LaudoPS(this.DSLaudosPS.LaudoTecnico, txt_nota.Text);
this.rpw_laudos.RefreshReport();
}
private void btn_ok_Click(object sender, EventArgs e)
{
this.LaudoTecnicoTableAdapter.Fill_LaudoPS(this.DSLaudosPS.LaudoTecnico, txt_nota.Text);
rpw_laudos.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SubreportProcessingEventHandler);
this.rpw_laudos.RefreshReport();
}
Thank you in advance.