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. Image for the cookie policy date

pdfdocument does not contain a definition for exportasactionresult

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

3 Replies

KK Karthik Krishnaraj Syncfusion Team August 24, 2015 06:07 AM UTC

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.


AS Andrew Simpson August 24, 2015 12:29 PM UTC

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



KK Karthik Krishnaraj Syncfusion Team August 25, 2015 11:38 AM UTC

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

Loader.
Up arrow icon