PDF Text Field

1 Answer 96 Views
PdfViewer
Lee
Top achievements
Rank 1
Iron
Lee asked on 08 Dec 2021, 12:22 PM | edited on 08 Dec 2021, 12:38 PM

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.? 

1 Answer, 1 is accepted

Sort by
0
Accepted
Lee
Top achievements
Rank 1
Iron
answered on 08 Dec 2021, 12:57 PM
Moved to Telerik document processing
Tags
PdfViewer
Asked by
Lee
Top achievements
Rank 1
Iron
Answers by
Lee
Top achievements
Rank 1
Iron
Share this question
or