PDA

Click to See Complete Forum and Search --> : how i can send varibale to crystal report 10 ?


xray
May 28th, 2006, 02:37 AM
peace be with you

i have a textbox the user write in it its "name" and i want to send this name to crystal report " 10 " to previewing it in the report .

- how i can send it ??
- can i send it by varibale or by using function in cr10 ?

thanks

RobDog888
May 28th, 2006, 02:56 AM
I have only used CR 8.5 and 9 but should still be similar in 10.

There is a Parameters collection of the repport object when you add a reference to CRAXDRT

Also, you need to create a parameter in CR and place it on your report so it know where you want it.


Moved

xray
May 28th, 2006, 03:04 AM
peace be with you

thanks rob

but can i have a code !!

thanks

RobDog888
May 28th, 2006, 03:13 AM
c0d examples :D

http://vbforums.com/showpost.php?p=1863534&postcount=2
http://vbforums.com/showpost.php?p=1952009&postcount=3
http://vbforums.com/showpost.php?p=1846505&postcount=4

xray
May 28th, 2006, 03:33 AM
peace be with you

rob it's ok .. to make a parameter but there is two things ::
- the item index (( item(1) )) ..... is this just creatingh new one or must depend on the name of the field in the cr report ???

- if this just creating new items oh the cr report will resive its values ?

thnaks

RobDog888
May 28th, 2006, 03:36 AM
If you only have one parameter then the .Item(1) is fine but if you have multiple parameters then you need to use .Item("blah"). Blah would be the parameter name that you gave it in CR.

xray
May 28th, 2006, 03:49 AM
peace be with you

thanks man... solved