C
Charles Crawford
Hello,
I've created a data-driven application and would like to provide users with
printed reports.
The primary report consists of a parent table and a details table, related
by a Primary Key ('ID') and Foreign Key ('MANHOLE_ID'). Both are INTEGER
data types.
I've configured my parent report and included a subreport control, which
uses another report document (.rdlc) to display the related table.
In the subreport's report document, I've defined the report parameter to be
'MANHOLE_ID' and set the filter on the report table to:
'Fields!MANHOLE_ID.Value = Parameters!MANHOLE_ID.Value'.
In the parent report's document, I've set the subreport parameter for the
subreport control to: MANHOLE_ID = 'Fields!MANHOLE_ID.Value'.
In the form containing the report viewer control, I've added the
eventhandler 'SubreportProcessingEventHandler() code as described in the
following KB article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;919157
No matter what I do, I still get 'Error: Subreport could not be shown' when
viewing the report. I've tested the subreport's datasource by viewing the
subreport as a parent report without a subreport and it gets the data
correctly.
Does anyone have any idea what might be preventing the subreport from
displaying?
Thanks,
Charlie
I've created a data-driven application and would like to provide users with
printed reports.
The primary report consists of a parent table and a details table, related
by a Primary Key ('ID') and Foreign Key ('MANHOLE_ID'). Both are INTEGER
data types.
I've configured my parent report and included a subreport control, which
uses another report document (.rdlc) to display the related table.
In the subreport's report document, I've defined the report parameter to be
'MANHOLE_ID' and set the filter on the report table to:
'Fields!MANHOLE_ID.Value = Parameters!MANHOLE_ID.Value'.
In the parent report's document, I've set the subreport parameter for the
subreport control to: MANHOLE_ID = 'Fields!MANHOLE_ID.Value'.
In the form containing the report viewer control, I've added the
eventhandler 'SubreportProcessingEventHandler() code as described in the
following KB article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;919157
No matter what I do, I still get 'Error: Subreport could not be shown' when
viewing the report. I've tested the subreport's datasource by viewing the
subreport as a parent report without a subreport and it gets the data
correctly.
Does anyone have any idea what might be preventing the subreport from
displaying?
Thanks,
Charlie