Welcome Guest Search | Active Topics | Sign In | Register

MVC Controller calling another controller to generate pdf file Options
bob
Posted: Thursday, April 10, 2014 11:44:16 AM
Rank: Newbie
Groups: Member

Joined: 4/10/2014
Posts: 1
Hi,
The mvc example you have in the sample documentation works ok when saving controller to pdf file, but it also outputs the content back to the calling page. I need to generate the pdf file by calling a different controller, don't return this output, but return the output of the calling controller.

Could you provide an example please?
eo_support
Posted: Thursday, April 10, 2014 11:49:02 AM
Rank: Administration
Groups: Administration

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

Please see if this is what you are looking for:

http://www.essentialobjects.com/doc/4/web/mvc.aspx#save

You can also call ConvertHtml/ConvertUrl directly if that fits your need better. MVCToPDF is built-in on top of ConvertHtml. It works by capturing the output HTML of your web page and then call ConvertHtml to convert that into PDF. However you already have the HTML or can easily get the HTML yourself, then you can bypass MVCToPDF and call ConvertHtml directly.

Please let us know if you still have any questions.

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.