Hi,
You could use:
InputTextFieldName ('TIME \\@ "d'' de ''MMMM'' de ''yyyy"');
and in OnTextObjGetTextEx event, handle it whit this pieces of code:
if (copy (TXTObject.Name, 1, 10) = 'TIME \\@ "') then
sFormato := copy (TXTObject.Name, 11, length (TXTObject.Name) - 10);
...
if sFormato <> '' then
begin
DateTimeToString(sResult, sFormato, Now);
printString := sResult;
end
else....
TXTObject.Params := printString;
This is what I use, and it is compatible with MSWord datetime field signature, working perfectly. But I'm having a problem while transfering the contents from one TWPRichText to another using WPRichTextNEW.RTFText.AsString = WPRichTextORIGINAL.RTFText.AsString. It is loosing the double quotes, so if I copy from WPTools and Paste in MSWord, trying to "update field value" it shows an error: "Error! The character sequence has no coincident quotes" (or something like that)
I sent this issue to Julian and hope he could solve it.
Hope this helps
Alessandro Fragnani