我在SSRS 2005中有報告。我正在使用遠程報告。在IE中,打印按鈕顯示,但在Firefox和Chrome中,打印按鈕不顯示。Chrome和Firefox中的SSRS打印按鈕
我的報告顯示在jQuery UI對話框中,所以我不能只做一個window.print。我的報告在模態內渲染得很好。
我需要能夠發出一個打印命令給reportviewer,就像它從控件內部完成一樣,但只能在firefox和chrome中完成。
我挖掘了報表查看器的標記,並找到了這段代碼。我試圖手動將它注入到reportviewer中,但沒有成功。
<table id="reportViewer_ctl01_ctl07_ctl00_ctl00" onclick="document.getElementById('reportViewer').ClientController.LoadPrintControl();return false;" onmouseover="this.Controller.OnHover();" onmouseout="this.Controller.OnNormal();" title="Print" style="display:none;">
<script type="text/javascript">
document.getElementById('reportViewer_ctl01_ctl07_ctl00_ctl00').Controller = new ReportViewerHoverButton("reportViewer_ctl01_ctl07_ctl00_ctl00", false, "", "", "", "#ECE9D8", "#DDEEF7", "#99BBE2", "1px #ECE9D8 Solid", "1px #336699 Solid", "1px #336699 Solid");
</script><tr>
<td><input type="image" name="reportViewer$ctl01$ctl07$ctl00$ctl00$ctl00" title="Print" src="/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.4402&Name=Microsoft.Reporting.WebForms.Icons.Print.gif" alt="Print" style="height:16px;width:16px;padding:2px;" /></td>
</tr>
</table>
任何想法?
作爲一種現在的解決方法,我在我的模式上打開了一個按鈕,打開一個新的可打印版本的空窗口中的報告。我想直接從模式打印。 – Josh 2010-11-17 19:55:05