如何在I.E中按特定名称保存PDF [英] How to Save the PDF by Specific name in I.E

查看:80
本文介绍了如何在I.E中按特定名称保存PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



当我们保存任何生成的PDF时我有一个要求它是以页面的名称,但我想给出具体的名称。我尝试了代码更改,但没有任何帮助,

在Mozilla它的工作正常,但在I.E.它没有用,任何人都面对这个问题请帮助我。

代码:

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

推荐答案

查看此链接。



​​ http://stackoverflow.com/questions / 2684221 / create-a-pdf-from-a-rdlc-in-the-background [ ^ ]


这篇关于如何在I.E中按特定名称保存PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆