PDF form fill - Check to confirm the form field exists

0
When filling a PDF form. Is there any way to see if the form field exists prior to attempting to fill the field with text? ie: Dim form As PdfImportedForm = pdfReader1.Form IF form.Fields("FirstNamePDF").exists = True) THEN Dim ldField_FNAME As PdfImportedTextBoxField = TryCast(form.Fields("FirstNamePDFfield"), PdfImportedTextBoxField) ldField_FNAME.Text = txtFNAME.Text ELSE do nothing END IF Notes: VB.net, componentpro PDF, filling a form
 
asked 9/26/2022 11:04:07 PM
add a comment

0 Answers

Your Answer

Not the answer you're looking for? Browse other questions tagged pdf winforms or ask your own question.