I have the following error message when configuring SubReports

0

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.

    
asked by anonymous 15.06.2018 / 15:40

0 answers