如何在MVC中打印水晶报表 [英] How to print crystal report in MVC

查看:57
本文介绍了如何在MVC中打印水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在mvc应用程序中打印水晶报告,请帮忙。



我尝试过:



我在这里找到了一些文章:http://www.c-sharpcorner.com/UploadFile/75ceb2/print-crystal-report-at-client-side-printer-in-Asp- Net /,它适用于asp web表单,

解决方案

打印功能纯粹是 JavaScript ,所以无论如何您正在使用WebForms或MVC,它应该在浏览器中呈现的时间内工作。您只需要在页面中显示报告,将报告内容包装在 div 元素中,就像文章显示的内容一样,然后调用Print JavaScript函数。

I need to print crystal report in mvc application, please help .

What I have tried:

I found some article here : http://www.c-sharpcorner.com/UploadFile/75ceb2/print-crystal-report-at-client-side-printer-in-Asp-Net/, it is for asp web form,

解决方案

The print functionality is purely JavaScript, so regardless if you are using WebForms or MVC, it should work as long it it renders in the browser. You just need to display the report in the page, wrap the report content in a div element just like what the article is showing and then call the Print JavaScript function.


这篇关于如何在MVC中打印水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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