This is a migrated thread and some comments may be shown as answers.

Client Side export PDF of RazorPage element in an ASP.Net Core site

1 Answer 6 Views
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 22 Jun 2020, 10:25 PM

Hi All.

Kind of confused about where to go for this.  Is it possible in the current Asp.net Core product offering?  I've seen demos oriented around the other product packages, but not for Asp.net Core. 

Thanks much.

 

-K

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 25 Jun 2020, 05:42 PM

Hi Kevin,

We export page elements on the client with the Kendo UI Drawing. Since the export is done on the client the export can be done in MVC, or in Core (MVC pattern or RazorPages) with no need for any specific configuration based on the framework. With one exception, if the file needs to be saved on the server (using a Proxy), the syntax that specifies the action (MVC) or the page method (RazorPages) would be slightly different. So our demo for MVC: https://demos.telerik.com/aspnet-mvc/pdf-export would still be applicable, and only the proxyUrl option needs to be changed from:

proxyURL: "@Url.Action("Pdf_Export_Save")"

to:

proxyURL: "/Index?handler=Save"

But this configuration is optional and can be omitted.

Attached to this reply you can find a sample ASP.NET Core RazorPages project, that demonstrates the client-side export of a Grid with Drawing.

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Asked by
Kevin
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or