How to set a Date ContentControl programatically

Dear support team,


I am trying to programmatically set a date contentcontrol in a word document using DocIO. Can you provide me how to achieve that?


Does it make a difference between setting a Date InlineContentControl or a  Date BlockContentControl?


Kind reg


1 Reply 1 reply marked as answer

MR Manikandan Ravichandran Syncfusion Team February 4, 2022 11:40 AM UTC

Hi Strien,

We have prepared the sample to achieve your requirement of adding Date content control in the Word document and the sample can be downloaded from the below link.
https://www.syncfusion.com/downloads/support/forum/172555/ze/ConsoleAppBase_F172555728932183

Please refer the below link to know more about date content control.
https://help.syncfusion.com/file-formats/docio/working-with-content-controls#date-picker

Please refer the below link to get difference between inline and block content controls.
https://help.syncfusion.com/file-formats/docio/working-with-content-controls#what-is-content-control

 
Block content control 
Inline content control 
One of the child entities of Paragraph like text range 
One of the child entity of Text body like paragraph, table 
Child entities of paragraph, can be added into inline content control.

Example: Paragraph may have text range and inline content control and inline content control again may have another text range.
 
Child entities of Text body can be added into block content control.

Example: Text body may have tables, paragraphs and block content control and block content control again may have some tables and paragraphs.
 

Regards,
Manikandan Ravichandran
 


Marked as answer
Loader.
Up arrow icon