ReportViewer control: Error: subreport not showing

D

Dean Slindee

With VS2005/Vista using the ReportViewer control, on my development PC I
have a report with an embedded subreport. The report/subreport runs fine in
VS test as well as ClickOnce deployed on the development PC. However, when
ClickOnce deployed on user PC's over a network, the report runs, but in the
subreport area is the message: "ERROR: subreport could not be shown".

If the report can run as deployed by ClickOnce on my PC, then I tend to
think that it is not a parameter problem.
Could it be a ClickOnce deployment bug? Or, any other suggestions?

Thanks,
Dean S
 
M

Mone Awad

Did you resolve this problem? I m still trying to find out how to have subreport in a report and how to link them, i have to do a report with many subreport and just can[t find samples or materials...
 
R

Rich P

I haven't had much luck embedding reports and deploying. When I use
Click Once, I will copy the rdlc file (the report file) along with the
application (select copy content always instead of embed). The only
trick here is that you have to specify the path in the code of your
application like:

reportViewer.LocalReport.ReportPath = Application.StartupPath &
"\rdlcReports\RptSpecial.rdlc"

I have added a subdirectory in the bin/Release and bin/Debug dirs so
that everytime the app gets compiled -- a copy of the rdlc gets copied
to this(these) directories.

Rich

Rich
 

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