locked
How to Save the PDF by Specific name in I.E RRS feed

  • Question

  • User-1566075271 posted

    Hi all,
     
    I have one requirement when we save any generated PDF it's taking the name of page but I want to give the specific name. I have tried it with code change but no help,
    In Mozilla its working fine but in I.E. its not working , Any one face the issue before please help me.
    Code :

    Dim report As Byte() = ReportSrv.Document_Get(version, reportTemplateID, caseno, User.Identity.Name, UseThisRequestForRest)
                        Response.ContentType = "application/PDF"
                        Response.Filter = New System.IO.Compression.DeflateStream(Response.Filter, CompressionMode.Compress)
                        Response.AppendHeader("Content-Encoding", "deflate")
                        Response.AppendHeader("Content-Disposition", "inline; filename='" + caseno + "'.pdf")
                        Response.OutputStream.Write(report, 0, report.Length)
                        Response.End()
    Monday, September 16, 2013 4:00 AM

Answers

All replies