Hello,
I tried to extend the Fill in Form example in order to set the Value
of a PdfTextField
.
Just added the snipplet to show the name as text:
Dim i As Integer = 0
For Each field As PdfField In document.Form.Fields
If TypeOf field Is PdfTextField Then
Dim textField As PdfTextField = field
textField.Value = textField.Name & "_" & i
i = i + 1
End If
Next
However i always get the error:
System.TypeInitializationException: “The type initializer for ' ’ threw an exception.”
Inner exception
FileNotFoundException: Could not load file or assembly ‘System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Das System kann die angegebene Datei nicht finden.
Could you please extend the example to show how the change the text of a PdfTextField
?
Thanks and kind regards,
Sven