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.

Method ExportAsActionResult not a member of PdfDocument

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 01:21 AM

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 10:33 AM

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

KarthikeyanC [Syncfusion]
Replied On June 15, 2014 11:56 PM

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 10:05 AM

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 07:08 AM

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.

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.

;