mrdutchie Posted September 12, 2003 Posted September 12, 2003 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 won't need to write a whole procedure for each report with those 3 Dim Statements. Is this possible at all? Quote
Moderators Robby Posted September 13, 2003 Moderators Posted September 13, 2003 you can decare it like this... Dim myReportDocument As New ReportDocument() myReportDocument.Load(myDropDown.SelectedItem.Value) myCrystalViewer.ReportSource = myReportDocument Quote Visit...Bassic Software
mrdutchie Posted September 13, 2003 Author Posted September 13, 2003 Thank you very much... It solved my problem :) I knew it could be easier, but didn't know what. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.