How to import the checkboxes from a Word or RTF document?
Posted: Tue Nov 08, 2022 2:24 am
Using:
+ TDBRichViewEdit v14.2.7
+ Delphi 10.2.3 Tokyo
I have a RTF document that has text and checkboxes in it. However, when I import the document into a RichViewEdit, the text imports correctly but the checkboxes are lost.
This is the code:
How can I also import the checkboxes?
My aim is to allow the user to check/un-check a checkbox and also save this to database (hence using TDBRichViewEdit).
Preview of the RTF document is below: Thanks in advance!
+ TDBRichViewEdit v14.2.7
+ Delphi 10.2.3 Tokyo
I have a RTF document that has text and checkboxes in it. However, when I import the document into a RichViewEdit, the text imports correctly but the checkboxes are lost.
This is the code:
Code: Select all
DBRichViewEdit1.Clear;
DBRichViewEdit1.LoadRTF(ExtractFilePath(ParamStr(0)) + 'Doc1.rtf');
DBRichViewEdit1.Format;
DBRichViewEdit1.DoChange(True);
My aim is to allow the user to check/un-check a checkbox and also save this to database (hence using TDBRichViewEdit).
Preview of the RTF document is below: Thanks in advance!