How to return PDF to browser in MVC? Sign up or pdf damaged and cannot be repaired in to customize your list. Join Stack Overflow to learn, share knowledge, and build your career. How to return PDF to browser in MVC?
How do I get the controller to return the pdf document to the browser? Any ideas why this does not work? Geoff, I ‘m try to achieve this, but having similar problems. Cannot implicitly convert type ‘System.
I got it working with this code. What namespace to be added? This worked for me too, excellent!
I updated the code to remove an unneeded memorystream. I am a little concerned there is not a single using statement in any example I can find Is it not needed here? I was searching everywhere on how to do this!
I’ve run into similar problems and I’ve stumbled accross a solution. Killer answera BIG THANK YOU! This was exactly what i was looking for!