crystal report text object
Hi
I have a crystal report viewer and a textbox inside the VB6 form. I want the content of the textbox to be displayed inside a text object(in the crystal report).For example if the user enters John, I want John to be displayed at the report header inside a text object.How can i do it?
i am using VB6 and crystal report 9
thanks
Re: crystal report text object
Quote:
Originally Posted by engnouna
Hi
I have a crystal report viewer and a textbox inside the VB6 form. I want the content of the textbox to be displayed inside a text object(in the crystal report).For example if the user enters John, I want John to be displayed at the report header inside a text object.How can i do it?
i am using VB6 and crystal report 9
thanks
Use the Parameters collection on the report.
Create a string parameter on the report and place it somewhere.
Add a value to the parameter in code in VB6 something like
crxReport.ParameterFields.GetItemByName("PArameter_Name").AddCurrentValue "<Some_Value>"
Then call the report and the value will be int he parameter field on the report. You can format the parameter field the same as a text box.
HTH