>First I get the suggestion to change Public to Dim
>
>Then a suggestion to change Collection to iCollection ( the interface)
>
>I think the error you got before from itextsharp said it was trying to cast as an icollection
>
>( not sure if it is important, but also remember iTextsharp is C# so anything passed into it may be case sensitive )
I am trying to make it simpler. I took this example from
http://stackoverflow.com/questions/3367390/read-pdf-form-data-using-itextsharp.
Dim pdfTemplate As String = "my.pdf"
Dim pdfReader As New iTextSharp.text.pdf.PdfReader(pdfTemplate)
Dim fields As iTextSharp.text.pdf.AcroFields = pdfReader.AcroFields.Fields
Dim val As String = fields.GetField("fieldname")
It doesn't give any error. However, if you would take fields, how you would do a For/Each loop with it? I tried various declarations but I cannot find the right one. There has to be a way to scan that collection.