Click here to Skip to main content
15,891,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone !!

I have taken one multi extended list box and ok button and crystal reportviewer on one form.

now when i select multiple records form list box which contains the list of different cities and then i click on ok button then the result should be display on crystal reportviewer.

how to do this .
Posted
Updated 17-Jul-11 20:27pm
v2
Comments
Uday P.Singh 17-Jul-11 6:26am    
go ahead what is the issue?

1 solution

 
Share this answer
 
v2
Comments
Espen Harlinn 17-Jul-11 7:13am    
Nice reply, my 5
mrustechnology 17-Jul-11 7:26am    
that i know but what will be the coding ?
actuall i have done the coding like this

dim list as new arraylist
dim item as string

for each item in listbox.selecteditem.tostring()
list.add(item.tostring())
next
crystalreportviewer.selectionformula = " { tablename.clientname}" ='" & listbox.selecteditem & "'"

and the error doesnt comes but only one data is selected . means when i select two item from list box then the data of only the first item is displayed .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900