Welcome Guest Search | Active Topics | Sign In | Register

MvcToPdf - how to redirect after conversion Options
dm
Posted: Friday, December 19, 2014 3:23:59 PM
Rank: Newbie
Groups: Member

Joined: 8/9/2013
Posts: 6
Hello,

In our asp.mvc 5 project we are able to convert view to pdf using this http://www.essentialobjects.com/doc/4/web/mvc.aspx#save approach. What is the recommended way to do a redirect after pdf conversion using above approach?
eo_support
Posted: Friday, December 19, 2014 5:41:06 PM
Rank: Administration
Groups: Administration

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

You can not send a redirect and a PDF file down the browser at the same time on a single request. So these two things have to be done with two different requests. One way you can do this is when user clicks a button, you can open up a new window and do the PDF conversion in that request. You can then continue with redirect in your original window. Another way is to have two different buttons: one to redirect and one to save to PDF. In short, these two things can not happen at the same time over the same request.

Thanks!


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.