如何清除按钮单击事件上的水晶报表数据 [英] how to clear crystal report data on button click event

查看:78
本文介绍了如何清除按钮单击事件上的水晶报表数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个winform应用程序,带有一些复选框,当我单击按钮时,它将显示我已检查的列的Crystal Report上的所有数据,但是当我取消选中某些复选框并单击按钮时,它将在Crystal Report上附加以前的数据.

i have a winform application,with some checkboxes ,when i click button it shows all the data on crystal report for columns that i checked,but when i uncheck some checkboxes and click button it append data with previous data on crystal report.
thanks in advance.

推荐答案

我找到了它,只需在按钮单击事件开始时清除数据集即可.
就像ds是数据集的对象,则
i find it, just clear the Dataset in the starting of button click event
like ds is the object of dataset then
ds.Clear();


尝试以下操作:编辑.rpt文件并关闭使用报表保存数据".
Try this: Edit the .rpt file and turn off "Save Data With Report".


这篇关于如何清除按钮单击事件上的水晶报表数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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