I have a PDF with a number of text fields that have a number format. I am updating them with calculated values:
If PDFdocument.AcroForm.FormFields.Contains(row.Item("XMLField").ToString()) Then
field = PDFdocument.AcroForm.FormFields.Item(row.Item("XMLField").ToString())
Select Case field.FieldType
Case FormFieldType.TextBox
ModifyTextBox(CType(field, TextBoxField), OutText)
Case FormFieldType.CheckBox
Try
ModifyCheckBox(CType(field, CheckBoxField), New String() {row.Item("OutText").ToString()})
Catch
End Try
End Select
End If
When this executes the number format is over written and I see 1222777.00 instead of 1,222,777.00.
Is there a way to either not lose the number format or reset the number format for the PDF Text field.?