怎么传递水晶报告的价值? [英] how pass values to crystal report?

查看:37
本文介绍了怎么传递水晶报告的价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经构建了一个检索报告来自db和所有数据的所有数据工作正常但现在我想要从应用程序传递值而不使用db
就像我们有report.title和report.author那样有任何方法可以访问报告的对象和在运行时更改它们?
感谢您的帮助


i have build a report that retrieve all data from db and all works fine but now
i want pass values from the app without using the db
like we have the report.title and report.author there is any way to acess the objects of the report and change them in runtime?
thanks for your help

推荐答案

我是刚开始使用Crystal,所以我可能不是最好的参考。

保存我的水晶文件时,它会生成一个.vb(rptMain.vb)

我创建了这个对象的实例(这是一种行a数据集)并用我想发送的值填充它。

然后我使用以下命令将数据源设置为报告:CrystalReportViewer1.ReportSource = x

这是使用Crystal 9.我听说较新的版本是easyer。

此代码从XML加载数据并填充水晶对象。




Code Snippet


这篇关于怎么传递水晶报告的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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