水晶报告创建问题 [英] Crystal Report Creation Problem
问题描述
大家好!
我是创建水晶报表的新手。在我的项目中有一个名为费用信息的表格,其中包含学生信息和7个字段(如入场费,统一收费等)所以在填写表格之后我需要根据表格上的信息创建3个报告,有一个名为转到报告的按钮,所以
在那个表格中我放了一个按钮&组合框,其中包含3个名字现在我想要当我选择名称说出报告-1并点击按钮然后该报告应该分别出现报告-2和报告 - 3.Means只有一个表格,我想在按钮点击时调用3个不同的报告。怎么办?请通过演示解释并建议一些简单的教程或链接。
谢谢..
Hi To All!!
I am new in Creating Crystal Report.In my Project There is a form called fees information which contain student information plus 7 fields(like Admission fees,uniform fees etc) So after filling form i need to create 3 report based on information on form there is one button named "Go to Report" so
In that Form I put one button & combobox which contain 3 name now i want when i select name say report-1 and click on button then that report should appear respectively report-2 & report-3.Means There is only one form and i want to call 3 different report on button click.How can it done? Pleas explain with demo and suggest some easy tutorial or link.
Thanks..
推荐答案
你的问题有点令人困惑,我想你想根据你的按钮点击3个不同的报告组合框选择值。
你可以这样做:
''内部按钮点击事件
Your question is little bit confusing , i think you want to get 3 different report on button click according to your combobox selected value .
you can do as follows:
''Inside button click event
dim objrpt As Object
dim val as integer
'get your combobox value or what you want to check
val= Me.cmbAsst.SelectedValue
If val= 1 Then
objrpt = New report_1
'proceed further and show the report on report viewer
ElseIf val= 2 Then
objrpt = New report_2
'proceed further and show the report on report viewer
ElseIf val= 3 Then
objrpt = New report_3
'proceed further and show the report on report viewer
End If
这篇关于水晶报告创建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!