We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

pdfdocument does not contain a definition for exportasactionresult

Thread ID:

Created:

Updated:

Platform:

Replies:

119998 Aug 21,2015 08:50 AM Aug 25,2015 07:38 AM ASP.NET MVC 3
loading
Tags: PDF
Andrew Simpson
Asked On August 21, 2015 08:50 AM

i am trying to get your demo see link to run

http://mvc.syncfusion.com/demos/web/pdf/default

but i get an error syncfusion.pdf.pdfdocument does not contain a definition for exportasactionresult and it wont build.

i tried the solution on this thread  http://www.syncfusion.com/forums/117734/urgent-assistant-needed but that changes the error to to no extentionmethod exportactionresult accepting a first argument type of syncfusion.pdf.document could be found.

i am using visual studio 2013 and essential studio 13.1.0.21 and asp.net mvc

what am i doing wrong

thanks
andrew

Karthik Krishnaraj [Syncfusion]
Replied On August 24, 2015 02:07 AM

Hi Andrew,
Thank you for using Syncfusion products,
I have attached a simple sample in which we used PdfExtension and PdfResult class for saving the document. Can you please check through it and let us know if you have any other queries.
Sample Link:
http://www.syncfusion.com/downloads/support/forum/119998/ze/MVCExportAsActionResult1047901347
Thanks,
Karthik.

Andrew Simpson
Replied On August 24, 2015 08:29 AM

Thank you for your quick reply.
Using your extentions and working through your sample I found out that i was missing using Syncfusion.Mvc.Pdf; as well

everything is working now

thanks
andrew


Karthik Krishnaraj [Syncfusion]
Replied On August 25, 2015 07:38 AM

Hi Andrew,
Thank you for your update, Please let me know if you have any other queries.
Thanks,
Karthik

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;