Last post Sep 25, 2014 03:20 AM by Mikesdotnetting
Sep 25, 2014 02:07 AM|SHH|LINK
I want to save and edit the report page in clientside with images .....How can i proceed on this...
Any help on this would be great.....
Thanks and regards...
Sep 25, 2014 02:11 AM|Mikesdotnetting|LINK
You can't so this with ASP.NET. You can only provide the user with an option to save the PDF file. They must use installed software to edit the file.
Sep 25, 2014 02:18 AM|SHH|LINK
Fine,Saving part of report web page.....that how i should start....and handle it....
Sep 25, 2014 03:20 AM|Mikesdotnetting|LINK
You can use Response.TransmitFile to send the report to the client. You can do this in a handler (ashx file). I don't know how you are generating the report but you would do this within the ProcessRequest method of the handler. The key is to set the Response.ContentType
to application/octet-stream rather than application/pdf and the content-disposition to attachment:
Response.AddHeader("Content-disposition", "attachment; filename=report.pdf");
Response.ContentType = "application/octet-stream";