Sam
Sam

Reputation: 11

How to know local report path in rdlc report in c#

I want to check which Report is calling in the application. Means I want to know the local report path of the rdlc.

I am using now:

reportViewer.LocalReport.ReportPath = reportpath;

But I'mm getting Error like:

An Error Occur during Local Report Processing

Upvotes: 0

Views: 7605

Answers (2)

Ejrr1085
Ejrr1085

Reputation: 1071

reportViewer1.LocalReport.ReportEmbeddedResource = "YourWindowsFormsCSharpProject.ReportsFolder.Report1.rdlc";

Upvotes: 3

Mizanur Rahman
Mizanur Rahman

Reputation: 272

try this

ReportViewer1.LocalReport.DataSources.Add(reportDataset);
    ReportViewer1.LocalReport.ReportPath = Server.MapPath("Reports/RPT_Reports.rdlc");

Upvotes: 0

Related Questions