IndraG
Jul 12th, 2007, 05:02 AM
I have a simple form which display the list of all the new members after the user enter the joining date in the textbox. When the user click the Print button, the form will call a Crystal Report which shows the list and can print it from there.
Displaying the list in Crystal Report is not a problem. However, I want the Report also shows the date that was in the textbox which was entered earlier by the user. My idea is to add a blank label (text object) in CR, which value I would like to change in the runtime. However, I simply can't get it right. The code I use is:
Dim report As New crList
Report.txtDate.SetText(frmList.txtCall.Text)
However, the second line above comes up with compiling error in VB 2005. Intellisense does not even show txtDate after I typed Report.! It works well with VB.6 and CR 8.5 before. Yet, frustratingly nothing comes up my search on this subject. Surely, others have faced this before and solved it. Anyone can help, please?
Displaying the list in Crystal Report is not a problem. However, I want the Report also shows the date that was in the textbox which was entered earlier by the user. My idea is to add a blank label (text object) in CR, which value I would like to change in the runtime. However, I simply can't get it right. The code I use is:
Dim report As New crList
Report.txtDate.SetText(frmList.txtCall.Text)
However, the second line above comes up with compiling error in VB 2005. Intellisense does not even show txtDate after I typed Report.! It works well with VB.6 and CR 8.5 before. Yet, frustratingly nothing comes up my search on this subject. Surely, others have faced this before and solved it. Anyone can help, please?