rsErrorExecutingSubreport while generating a report with Label tags and subreports

M

Michele Locati

Hi to everyone

I've got a problem that I can't really solve by myself, and I hope this
is the right place where to look a solution.
I already tried in microsoft.public.sqlserver.reportingsvcs, but got no
response.

In a VS2005 C# project, I've referenced
Microsoft.ReportViewer.Common.dll (8.0.50727.1826) and
Microsoft.ReportViewer.WinForms.dll (8.0.50727.1826).

In a local report definition (.rdlc) I've got a TextBox inside a List,
which is defined this way:
<Textbox Name="tbxNome">
...
<Label>=Fields!Nome.Value</Label>
<Value>=Fields!Nome.Value</Value>
</Textbox>

This report contains two sub-reports.
When generating the main report as Pdf, I receive the following two
warnings:
1) Warning: An error occurred while executing the subreport
'NameOfSubreport1: An internal error occurred on the report server. See
the error log for more details. (rsErrorExecutingSubreport)
2) Warning: An error occurred while executing the subreport
'NameOfSubreport2: An internal error occurred on the report server. See
the error log for more details. (rsErrorExecutingSubreport)

And in fact, the generated PDF contains the text "Error: Subreport could
not be shown." instead of the two subreports.

The strange thing is that if I remove the line
<Label>=Fields!Nome.Value</Label>
from the main report, the subreports are generated correctly.
I could generate a pdf report whithout bookmars (the pdf result of this
Label tag), but my customers would be more happy to have bookmarks to
navigate in a 100 page report...

Any hint? Where is the error log referenced by the two warnings above?

Thank you
Michele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top