I am trying to fill pdf XFA form (pdf attached) using below Spire.Pdf but my code is not updating datetime field rest all fields has been updated. Can anyone help to fill my pdf form dynamically using c#?
case "form1[0].DDEEInput[0].EaxmCompletedDate[0]":
XfaDateTimeField xfSCompleteDate = xfaField as XfaDateTimeField;
xfSCompleteDate.Value ="12/05/2020";
break;

Amy ZhaoPosted Dec 8, 2020, 3:16 AM
Marvin ReidPosted Oct 24, 2023, 8:37 PM
A solution you can investigate is using the PDFFormField class which would allow you to supply such a value to an existing field. Here is a sample you can test with:
https://www.leadtools.com/help/sdk/tutorials/dotnet-console-parse-edit-and-save-pdf-form-fields.html
Saravanan GanesanPosted Sep 24, 2023, 5:18 PM
To set a value for an XFA DateTime field using Spire.Pdf in C#, you should use the
XfaDateTimeField.XfaValueproperty instead ofValue. Here's the corrected code:case "form1[0].DDEEInput[0].EaxmCompletedDate[0]":
XfaDateTimeField xfSCompleteDate = xfaField as XfaDateTimeField;
xfSCompleteDate.XfaValue = "12/05/2020";
break;
Using
XfaValueshould correctly set the date in your XFA DateTime field.Farhan YazdaniPosted Sep 12, 2023, 6:23 AM
Hey, Ameer bhai how would have you overcome this datefiled issue can you tell me
Amy ZhaoPosted Dec 9, 2020, 1:51 AM
Ameer ShaikPosted Dec 9, 2020, 12:09 AM
Ameer ShaikPosted Dec 8, 2020, 3:42 AM