Welcome Guest Search | Active Topics | Sign In | Register

MVC to PDF Result file name not working Options
Zac
Posted: Monday, March 17, 2014 3:27:01 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2014
Posts: 3
Hi,

We're using MVC to PDF and everything is working great except the ResultFileName isn't working.

[RenderAsPDF(ResultAsDownload=true, SendToClient=true)]
public ActionResult Index(int id)
{
EO.Pdf.HtmlToPdf.Options.OutputArea = new RectangleF(0.25f, 0.25f, 8f, 10.5f);
MVCToPDF.ResultFileName = "PDF Output File"; // we're actually populating the name dynamically
return RenderHtml(id);
}

Any ideas why? Is this a bug or are we doing something wrong?
It just saves every file as Index (or the name of the controller action).
eo_support
Posted: Monday, March 17, 2014 5:02:15 PM
Rank: Administration
Groups: Administration

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

We have confirmed this to be a bug. We will fix it and provide a new build to you as soon as possible.

Thanks!
eo_support
Posted: Tuesday, March 18, 2014 10:18:48 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that should fix this problem. You can download the new build from our download page. Please take a look and let us know how it goes!

Thanks!
Zac
Posted: Wednesday, March 19, 2014 12:22:31 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2014
Posts: 3
Wow! Thanks a lot for the quick response and bug fix. We will test this shortly and let you know if it is resolved.

Thanks again - impressive support.
Zac
Posted: Wednesday, March 19, 2014 1:10:38 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2014
Posts: 3
We confirmed that this is now fixed.
We've been impressed by your html to pdf API and am further impressed by your support.

Thanks again.
eo_support
Posted: Wednesday, March 19, 2014 2:28:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Glad to hear that! Please feel free to let us know if there is anything else.

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.