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

File exported to serverside but not clientside

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kunal
Top achievements
Rank 1
Kunal asked on 28 Nov 2017, 06:39 PM

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()

 

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Dec 2017, 06:30 AM
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.
Tags
Grid
Asked by
Kunal
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or