Sub Report rdlc in Windows Service. RRS feed

  • Question

  • Hi guys,

    I have write a code to build a report in windows service. Everthing run the right way, but when a put a subreport inside thi report, the subreport does not show this report.

    "SubReport Could not be shown"

    Really, i'm not showing this report, i'm redering it and saving in a especific path.

    I try to use this same code in a console aplication and the subeport works properly.

    Talking with some guys here at citi, i found that the problem can be this:

    The delagate that the render function call to render the subreport call a winforms class.

    Delegate : MessagesReportViewer.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SubReportProcessing);

    Maybe the guys here know if this is really impossible to do and How I can do that?
    I have to use console aplications? Someone know how solve it?

    private void SubReportProcessing(object sender, Microsoft.Reporting.WinForms.SubreportProcessingEventArgs e)


    Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
    reportDataSource1.Name =
    reportDataSource1.Value =


    Friday, March 20, 2009 1:07 PM