ureport2 ajax,c# - Asp .Net Mvc: How to load RDLC report through Ajax Call - Stack Overflow

I have a controller Action which is returning a RDLC report through return File() function. The output is ok when calling this Action through browser address bar. Again, when calling this action thorough ajax GET method then the success data is bellowed string. I just want to show output of ajax call in a new window as a PDF file. Is there a way? I do not want to send the the parameters as query string of window.open() function for calling the Action from browser address bar.

success: function (data) {

var w = window.open();

$(w.document.body).html(data);

}

%PDF-1.3 1 0 obj [/PDF /Text /ImageB /ImageC /ImageI] endobj 4 0 obj

<< /Length 123 /Filter /FlateDecode>> stream X }N� �0���M���\�籅v�8�� ��u> /Font

<< /F3 3 0 R>> >> >> endobj 3 0 obj

<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding>> endobj 5 0 obj

<< /Type /Pages /Kids [ 2 0 R ] /Count 1>> endobj 6 0 obj

<< /Type /Catalog /Pages 5 0 R>> endobj 7 0 obj

<< /Title /Author <> /Subject

<> /Creator (Microsoft Reporting Services 10.0.0.0) /Producer (Microsoft Reporting Services PDF Rendering Extension 10.0.0.0) /CreationDate (D:20180827103611+06'00') >> endobj xref 0 8 0000000000 65535 f 0000000010 00000 n 0000000266 00000 n

0000000429 00000 n 0000000065 00000 n 0000000529 00000 n 0000000591 00000 n 0000000643 00000 n trailer

<< /Size 8 /Root 6 0 R /Info 7 0 R>> startxref 957 %%EOF

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值