开发者

Microsoft.ReportViewer.WebForms reports not working on mac

i am using Microsoft.ReportViewer.WebForms version 9.0, in my asp.net mvc2 app, with vs 2010,4.0. The report viewer doesnt open the pdf or excel files on Mac OS with safari or firef开发者_运维百科ox browsers, but works on windows. is there any fix for this?


As per my knowledge, the namespaces and dll's which start with Microsoft are targeted for Windows OS's only. Just check from MSDN which Operating Systems are the target for Microsoft.ReportViewer.WebForms.


I finally fixed the issue by changing the code as below , i.e. download as attachment.

Response.AddHeader("Content-disposition", "filename=test.pdf");

to Response.AddHeader("Content-disposition", "attachment;filename=test.pdf");

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜