Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
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..
Posted

1 solution

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
VB
 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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900