Hello Mario,
sorry to bother you again. The following issue occures now:
The Antrag.pdf (see github) contains a PdfTextField with the name “Textfeld 1” but when filling the textfield
with the following sniplet
Dim new_Test As String = “Greg Tester”
'fill Textfeld 1 which shows the error
Dim formField As PdfField = document.Form.Fields(“Textfeld 1”)
Dim tmp As PdfTextField = formField
tmp.Value = new_Test '<— xxx line with Exception
there is a NullRefenceException in the line “xxx”.
However “tmp” is assigned correctly to the real formfield (and casted) and after that line i see in the debugger that tmp.Value indeed is set correctly to “Greg Tester”. So it seems that the
NullRefenceException is not about the tmp variable but occures in the libs native code after .value is filled with “Greg Tester”
Sample here https://github.com/Kyubu-77/NullRefenceException
Could you please kindly have a look.
thanks and kind regards,
Sven