Hello.
My problem seems really simple, but I'm stuck.
In the following code, during a merge I add a field "NUMPAGES" or text as appropriate.
Code
void __fastcall ConvertirModele::OnMergeGetTextEvent(System::TObject * Sender, const System::UnicodeString inspname, TWPMMInsertTextContents * Contents)
{
if (inspname=="NUM_PAGE")
{
Contents->InputTextFieldName("NUMPAGES");
}
else if (inspname=="TEXTE"))
{
Contents->StringValue = "Texte";
}
}
Alles anzeigen
In case I use the InputTextFieldName function, the font of the variable is not resumed. The result is always in Arial, Size 11, Color Black.
When I assign my text to the StringValue property, the original font is always preserved.
How to apply the original font to the new field created ?
Thank you for your reply.