打印Crystal Report查看器 [英] Print Crystal Report viewer

查看:144
本文介绍了打印Crystal Report查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以打电话给我如何在crystalreportviewer上打印我的水晶报告吗,通过命令(mybutton)

Can anyone tel me how to print my crystal report which is on the crystalreportviewer,By command (mybutton)

推荐答案

这是我编写的代码这在Crystal Report查看器的页面加载事件中

Here is the code i''ve written this inside the page load event of crystal Report viewer

public DataTable dt = new DataTable();
private void crystalReportViewer1_Load(object sender, EventArgs e)
{
    Reports.CrystalReport crt = new Reports.CrystalReport ();
    crt.Database.Tables[0].SetDataSource(dt);
    crystalReportViewer1.ReportSource = crt;
}


在该数据表中,我已经存储了要打印的值.

希望对您有帮助.


in that datatable i''ve stored the value which i want to print.

Hope it helps you.


这篇关于打印Crystal Report查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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