Hello,
I work in VB2005 to develop a windows application.
I have 2 ArrayList, one containing photo path, the other contains text strings (each picture element is a text element).
I want to print the items of the ArrayList in the Details of a AR6Report.
I’ve tried using a For Next loop in the events ReportStart and Detail1_Format but does not work (print only the first element).
How can I do?
My code in Detail1_Format:
Private Sub Detail1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Detail1.Format
For i As Integer = 0 To ArrayFOTO.Count – 1
Dim fs As New System.IO.FileStream(ArrayFOTO.Item(i).ToString, IO.FileMode.Open, IO.FileAccess.Read)
Me.PictureRilievo.Image = System.Drawing.Image.FromStream(fs)
Me.TextInfoRilievo.Text = ArrayTESTO.Item(i).ToString
Next
End Sub
Thanks.
Beppe