Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Dear All


I have created rdlc report in mvc5. when i am hitting the link

@Html.ActionLink("PDF", "ExportTo", new { ReportType = "PDF" })

it gives the following error.

Could not find a part of the path 'F:\TestReport\abc\abc\TblContents\ContentReport'.


please help me to fix this problem


Regards

Amy
Posted
Updated 22-Nov-14 21:19pm
v2

1 solution

Well, this is a question rather hard to aswer. Why? Because the fisrt part of your post has little to do with the second part.
You make an action link. Than you probably have an action called ExportTo in your current controller. Where you pass the PDF in the ReportType parameter. This seems to work, since you don't get any routing resolution error.
Now for the second part: how can we tell, what's wrong, as long as we don't know what's in the action method (supposing you have properly added RDLC support to your application)?
By the way, the error you got on the screen will be most likely more explanatory as you have call stack and many other additional information. And by the way, you have debugging. Use it!

I suggest you follow the steps described here: Prototype MVC4 Razor ReportViewer? RDLC[^]
 
Share this answer
 
v3
Comments
BillWoodruff 23-Nov-14 8:01am    
+5 Given the limited information and code the OP posted here, this is excellent.

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