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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Method ExportAsActionResult not a member of PdfDocument

Thread ID:

Created:

Updated:

Platform:

Replies:

116204 Apr 23,2014 06:32 PM UTC Mar 9,2015 11:08 AM UTC ASP.NET MVC (Classic) 5
loading
Tags: PDF
lc
Asked On April 23, 2014 06:32 PM UTC

Hi,

i'm trying to implement a PDF export feature to a ASP.NET MVC 4 Syncfusion Project following this example:

http://mvc.syncfusion.com/demos/reporting/pdf/Tables/NorthwindReport

There are two problems i cannot solve:

1. using Syncfusion.Mvc.Pdf; - There is no Namespace Pdf under Mvc
2. return doc.ExportAsActionResult(...) there is no method ExportAsActionResult in Syncfusion.Pdf.PdfDocument

Thanks for your help

Kind regards 
lc

KarthikeyanC [Syncfusion]
Replied On April 28, 2014 05:21 AM UTC

Hi lc,

Thank you for your interest in Syncfusion products.

You may include the below mentioned namespace using Syncfusion.Pdf which is present in Syncfusion.Pdf.Mvc. ExportAsActionResult API is not available in Syncfusion.Pdf.Mvc.dll. This function is available in PdfExtension.cs class in the sample browser (Pdf.MVC\Samples\Extensions\PdfExtension.cs).

 

Please let us know if you need any further assistance.

Thanks,

Karthikeyan.C


lc
Replied On June 12, 2014 02:33 PM UTC

I found Syncfusion.Pdf.PdfDocument.Save which sends the pdf to the browser

KarthikeyanC [Syncfusion]
Replied On June 16, 2014 03:56 AM UTC

Hi lc,

Thank you for your update, please let us know if you need any further assistance.

 

Thanks,

Karthikeyan.C


Anis Boulaid
Replied On March 8, 2015 02:05 PM UTC

I downloaded the ASP.NET MVC Package, but I cannot find the ExportAsActionResult function, where I can find the PdfExtension class, in the nuget package we do not have any samples folder.

Best,
Anis

Abirami Selvan [Syncfusion]
Replied On March 9, 2015 11:08 AM UTC

Hi Anis ,

 

Thank you for using Syncfusion product .

 

We have attached the sample to access the ExportAsActionResult method using PdfExtension class in below link :

http://www.syncfusion.com/downloads/support/directtrac/general/Exportasactionresult-503840049.zip

 

Please try this and let us know if you need any further assistance .

 

Thanks,

Abirami.


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.

Warning Icon 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.Close Icon

;