Click here to Skip to main content
15,910,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a accounting software where i use listview to display stock report (compound unit) and want to export listview contents crystal report 8.5 directly using parameter fields. i made the code below :
dim i as long
dim n as string
dim codeitem as listitem
for i= 1 to listview.listitems.count
set codeitem=listview.listitems(i)
n=codeitem.text
next
report.parameterfields.getbyname("xxxx").addcurrentvalue n

But it displays the content of last row of the listview only
report through CRViewer

please help - urgent
Posted
Comments
ChandraRam 1-Mar-12 13:36pm    
The program does exactly what you have asked it to - the parameter is set outside the loop, so it will only contain the last value.

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