File exported to serverside but not clientside

2 posts, 0 answers
  1. Kunal
    Kunal avatar
    8 posts
    Member since:
    Sep 2017

    Posted 28 Nov 2017 Link to this post

    Hi All,

     

    I'm generating a PDF using my own code which is fired by a gridcolumbutton. The PDF is created on the server side without any issue but doesn't export the file Client side.

     

     

    CodeSnip

     

    filename = "pdf_sample_" & TEST & ".pdf"

                TEST_UtilityClass.generateTESTPDF(strPath,SampleName )

    ' strPath is serverpath

                Response.ContentType = "application/pdf"
                Response.AddHeader("Content-Disposition", "attachment;filename=" & filename)
                Me.EnableViewState = False
                Response.WriteFile(strPath)

                Response.Flush()
                Response.Close()

     

     

     

  2. Eyup
    Admin
    Eyup avatar
    3851 posts

    Posted 01 Dec 2017 Link to this post

    Hello Kunal,

    I've already replied to your query here:
    https://www.telerik.com/forums/get-radgridbutton-to-string-next-in-the-next-column#lfnA-Ii0QEqLpNiUr2vnqw

    You can check the built-in PDF exporting of RadGrid:
    http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx

    Regards,
    Eyup
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top