Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :
C#
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()
Posted
Updated 15-Sep-13 21:13pm
v2

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900