I am not using database. I have listview and Picture box, It is possible to viewing this objects on data report and print it out? I always use data report with database.Have a simple code that use data report without database?
Printable View
I am not using database. I have listview and Picture box, It is possible to viewing this objects on data report and print it out? I always use data report with database.Have a simple code that use data report without database?
An ADO Recordset does not require a database. You can create an in-memory recordset using
If you don't want to use ADO you might be able to use a Collection(or BindingCollection) and a DataSource class as the report's data source. I have no idea if this works as I never tried it but the VB Help file shows you how to create Data-Aware classes. The example code in the help file does use ADO Recordsets but you should be able to convert it to use a Collection. Again, no idea if this will work...Code:Dim i as long
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Fields.Append "CustomerId", adInteger
rs.Fields.Append "CustomerName", advarChar, 30
rs.Open
For i = 1 to 50
rs.AddNew Array("CustomerId", "CustomerName"), Array(i, "Customer # " & i)
rs.Update
Next
Moved to reporting