Select your report a different way... help needed please.

mrdutchie

Well-known member
Joined
Jul 7, 2003
Messages
78
Location
WI, USA
Hello, I am stuck since last week with the following problem.

I have several reports created and I can do the following

Dim CrReport1 As New crystalReport1
Dim CrReport2 As New crystalReport2
Dim CrReport3 As New crystalReport3

But what I like to do it browse for your report and put that value in a Textbox and then do

Dim CrReport as new your selected report from the Textbox
So I wont need to write a whole procedure for each report
with those 3 Dim Statements.

Is this possible at all?
 
you can decare it like this...
Code:
 Dim myReportDocument As New ReportDocument()

myReportDocument.Load(myDropDown.SelectedItem.Value)

myCrystalViewer.ReportSource = myReportDocument
 
Back
Top