Welcome Guest Search | Active Topics | Sign In | Register

Show PDF in browser window (MVC to PDF) Options
Brentar
Posted: Thursday, September 5, 2013 3:07:50 PM
Rank: Newbie
Groups: Member

Joined: 9/5/2013
Posts: 9
When I use the [EO.Pdf.Mvc4.RenderAsPDF] attribute it sends the pdf to the browser, so the browser asks the user to open/save the file. But I want to immediately show the pdf in a browser window.

Is there a simple way to do this? I know how to do it by returning an Mvc.FileContentResult and setting the type to "application/pdf," but I'd like to be able to use the RenderAsPDF attribute.
eo_support
Posted: Thursday, September 5, 2013 3:18:23 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

I believe you can do that by setting ResultAsDownload to false on the RenderAsPDF attribute.

Thanks!
Brentar
Posted: Thursday, September 5, 2013 4:46:13 PM
Rank: Newbie
Groups: Member

Joined: 9/5/2013
Posts: 9
Oh, well that was easy. Thank you.
eo_support
Posted: Thursday, September 5, 2013 4:47:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
You are very welcome. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.