如何通过单击按钮生成报告 [英] how to generate a report by clicking a button

查看:84
本文介绍了如何通过单击按钮生成报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我创建了一个表格和一个报告.现在我想通过单击w表单上的按钮来生成报告.我该怎么做.pl help

sir i havae created a form and a report. now i wnt to generate a report by clicking a button on thew form.how can i do this.pl help

推荐答案

好吧,我将其作为重新发布 [
Well I will take this as a REPOST[^].

Surely, you need to read first before trying to code. After helping you so much you are still not able to get the thing right.

Pick a book or use World Wide Web and read, learn, do some ground work first.


简单,只要双击按钮的click事件就会生成,然后调用您的报告对象并使用适当的方法来检查其水晶报表,然后执行以下操作:


CrystalReportCompGroup crcg =新的CrystalReportCompGroup();
crcg.SetDataSource(ds.Tables [0]);
crystalReportViewerCompGroup.ReportSource = crcg;
simple when u double click on button its click event generates and then call an object of ur report and use appropiate methods to shhow it if its crystal report then do following:


CrystalReportCompGroup crcg = new CrystalReportCompGroup();
crcg.SetDataSource(ds.Tables[0]);
crystalReportViewerCompGroup.ReportSource = crcg;


这篇关于如何通过单击按钮生成报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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