MvcReportViewer icon indicating copy to clipboard operation
MvcReportViewer copied to clipboard

MvcReportViewerExample references TestReports/TestReport which is not included in the source code

Open ericburcham opened this issue 9 years ago • 6 comments

Great tool. Thanks MUCH for developing it.

I have forked the repo, downloaded it, opened the solution, and configured it to run against my local SSRS Report Server. I immediately ran into a problem.

In ReportViewerExtensions.SetupRemoteProcessing, I hit this line of code: serverReport.SetParameters(parameters.ReportParameters.Values);

When that line executes, I get an exception: The item '/TestReports/TestReport' cannot be found.

I know how to publish reports to my local report server, but after an exhaustive search of the repository, I cannot find any report named TestReport, nor can I find any .rdlc file named TestReport.rdlc.

If I am missing something, please let me know. Otherwise, please include the TestReport you are using so people can run the examples :)

Cheers,

Eric Burcham

ericburcham avatar Feb 23 '16 18:02 ericburcham

Please configure your report server in https://github.com/ilich/MvcReportViewer/blob/master/MvcReportViewerExample/Web.config (<MvcReportViewer> configuration section).

The report URLs are set in the views, e.g. https://github.com/ilich/MvcReportViewer/blob/master/MvcReportViewerExample/Views/Home/Index.cshtml

I hope it helps.

ilich avatar Feb 23 '16 19:02 ilich

I am going to submit my test reports to simplify the process.

ilich avatar Feb 23 '16 19:02 ilich

I built a test report today when I was messing around with this again. I'll send you a pull request with JUST that report project in it. Feel free to take or leave it without offending me. It is just the simplest possible report that will work with the examples and deploys to TestReports/TestReport.

:smiley: If you like yours better, by all means, publish that one instead.

ericburcham avatar Feb 25 '16 21:02 ericburcham

Sure. Please submit a pull request! :+1:

ilich avatar Feb 25 '16 21:02 ilich

Pull request created here. Thanks again for building this thing, and especially for staying involved.

ericburcham avatar Feb 25 '16 22:02 ericburcham

can i load local rdl??

pablo17sanchez avatar Jan 05 '18 02:01 pablo17sanchez