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

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Aug 2014

    Posted 22 Jun 2020 Link to this post

    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

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2189 posts

    Posted 25 Jun 2020 Link to this post

    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.
Back to Top