Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing items from a collection

Status
Not open for further replies.

Top

Programmer
May 28, 2000
1
US
In my application (vb 6) I have created collection objects. ( similar to arrays). The objects basically go thru the middle tier DLL, make a connection to the server; from the server, loads the collection; and disconnects from the server (SQL 7).
The application manipulates the data in the collection and (may add or delete to it)and via the middle tier DLL updates the database.

My problem is that I want to be able to print the passed collection to the Report and print the items in the collection. *** I use Crystal Reports Designer (DSR)file compiled with the .exe.
*** the collection has a structure mapped to the database
e.g. TheAppCollection(n).Name
TheAppCollection(n).IdNo etc

''' somewhere in the app change event
TheAppCollection(n).Name = Ucase(txtName.text)

eg. somewhere in my app in print event:
' code snipplet
set frmPrintReport.CollectionToPrint = TheAppCollection
frmPrintReport.show
*** in the frmPrintReport
Public CollectiontToPrint as MyCollectionObject
'somewhere down in the report
With Report1
for each CollectionItem in CollectionToPrint
txtNameTextInReport.settext .CollectionToPrint.Name
next
end with
****** or very similar code onle prnts one name in the report! How do I get it to print very Name and or very collection item?
Respectfull submitted : Rudy AKA (Top)






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top