开发者

report export no work on user's pc

i created a application with function export report as pdf file, the application can download the report in web format. i run the application in my pc, it is work, but i try run at user pc, but fail when exporting

Using _report

        _report.Load(HttpContext.Current.Server.MapPath("Report/" & "report.rpt"))
        _reportname = name & date.now

        _report.ParameterFields("name").CurrentValues.Clear()
        _report.ParameterFields("name").CurrentValues.AddValue(_name)

        _report.SetDatabaseLogon(_gstrID, _gstrPassword, _gstrDataSource, _gstrCatalog)
        _report.ExportToHttpResponse(CrystalDecisions.Share开发者_JAVA百科d.ExportFormatType.PortableDocFormat, context.Response, True, _reportname)
        _report.Export()

        _report.Database.Dispose()
        _report.Dispose()

any miss take in my code???


There are many things that could be happening here.

First, test it from a completely different computer that the two you have. Test it on the same computer with the problem using a different browser. Optionally, update your version of Adobe Reader on the misbehaving machine and try again.

Next, if you are using IIS 7.5 there is a hotfix concerning downloading PDF files ( http://support.microsoft.com/kb/979543 ) that impacts particular versions of the Adobe PDF Reader plug-in.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜