Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a situation where I have a windows application that uses Microsoft Report Viewer Control. I am using the following code which is working fine on my development machine.

reportPath =

"ABS_Monthly_Expense_Recorder.REPORT.Report_By_Date.rptDate.rdlc";


// Set the active report path of the ReportViewer object

reportViewer1.LocalReport.ReportEmbeddedResource = reportPath;


// Add data source to the local report


// Note that the name should either be passed as parameter or


// parsed from the report document

reportViewer1.LocalReport.DataSources.Add(

new ReportDataSource("FinancleReport_MainTable", dsFinance.Tables["FinanceReport"]));

reportViewer1.RefreshReport();

I now took the debug folder on a different machine where they have only .Net framework installed. The exe is working fine, other forms are working perfectly. However, the form containing the report viewer control, though loads fine but giving an error while generating report. I have included the following two dlls in the same directory as the exe, as the form containing the report Viewer control wasn't loading without them:
Posted

1 solution

Make sure that the deployed system exists following Dll's
C#
Microsoft.ReportViewer.WinForms
Microsoft.ReportViewer.ProcessingObjectModel
Microsoft.ReportViewer.Common


even if it is there and make sure that version of these DLL's with DLL's in the Project reference


Other wise copy these DLL's to your project folder.


Hope this will works for you.
 
Share this answer
 
v2
Comments
JOEY G. MOYA 26-Aug-14 19:31pm    
Hi thank you for you suggestions, i did what you have suggested but unfortunately it did not work.error still exists "An Error occured during local report processing
the sreport definiation for report c:\debug has not been specified coud not find a part of the other path debug" everything works fine except my reports
JOEY G. MOYA 27-Aug-14 19:40pm    
Hi Sreejesh i was able to solve this issue using the "Pat.Getdir...") your suggestion gave me an idea that i have to get exe startup.

Thank you so much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900