-
[RESOLVED] Passimg Data
This is really similar to another current thread but I don't want to hijack it. I am using VB6 and Crystal Report Dev. XI and obviously just beginning with CR. CR created a form with the ocx to display the report. When I show the form from a command button elsewhere it performs correctly. On the report there is one textbox called TxtV0. On another form I have a public string variable V(0) that I want to display on the report in the textbox TxtV0.
I have tried to grasp the code tip on how to pass Crystal Report Parameters but I think it was written for .NET as I get an error of an undefined sub or function when trying "Imports CrystalDecisions.CrystalReports.Engine" and from there it is all downhill. In any case, I'm afraid I just don't understand it.
This ought to be very simple to do but I'm having a very hard time figuring out just how it's done. Could somebody please help?
Thanks in advance.
Ken
-
Re: Passimg Data
After a lot of fiddling around I figured out how to do what I wish. On the form with the ActiveX control, add the line at load:
Report.txtV0.SetText (V(0))
That's it.
Ken