We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load date fields inside a pdf?

Thread ID:

Created:

Updated:

Platform:

Replies:

132522 Sep 6,2017 01:30 PM UTC Sep 8,2017 11:43 AM UTC WinForms 3
loading
Tags: PDF
Sam Dyse
Asked On September 6, 2017 01:30 PM UTC

I know to use PdfLoadedTextBoxField for loaded text boxes but what do I use for loading date fields?  Any help would be appreciated.  This is being done in C#.

Sowmiya Loganathan [Syncfusion]
Replied On September 7, 2017 12:05 PM UTC

Hi Sam Dyse, 

We do support loading date fields from XFA Forms in Windows Platform using PdfLoadedXfaDateTimeField.  
 
Please check the below link to load date fields from existing XFA document : 

Please let us know if you need further assistance on this. 

Regards, 
Sowmiya L 


Sam Dyse
Replied On September 7, 2017 01:35 PM UTC

Is XFA the only way?  Here's a snippet of my code:

(form.Fields["f1_1"] as PdfLoadedTextBoxField).Text = sFullName;

(form.Fields["f1_5"] as PdfLoadedTextBoxField).Text = sFullName + ", " + sStreetAddr + ", " + sCity + ", " + sState + ", " + sZip;

(form.Fields["c1_6"] as PdfLoadedCheckBoxField).Checked = true;

(form.Fields["c1_1[0]"] as PdfLoadedCheckBoxField).Checked = true;

//This is where I want to load the date field
(form.Fields["Date1"] as PdfLoaded).Text = DateTime.Today.ToShortDateString();



Sowmiya Loganathan [Syncfusion]
Replied On September 8, 2017 11:43 AM UTC

 Hi Sam Dyse, 

We have created the simple sample to load the date field(TextBoxField) as PdfLoadedTextBoxField and modify the properties of that field in WindowsForms platform using PDF forms. Please find the sample from the below location. 
 
 
Please run the sample and check whether your requirement achieved at your end. Let us know if you need further assistance. 

Regards, 
Sowmiya L 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;