hello everyone,
is it possible to set the text color?
I would like to set it both via the Word_Export_SetText server action and via the Word_Export_SetLegacyTable server action
thanks
davide
Hey @davide cannarella,
I'm Also try to use this forge, You can select text Field and give font color, Same as Excel.
thank you.
Hi,
thanks for the reply.
I want to set the color in word and in the action there is no this option.
where should I put the font color?
Thk
Davide
Hi Davide,
For enabling conditional text coloring (or any other text style definition) in OfficeUtils, you should specify on your template different placeholders with the different styling alternatives. For example:
And in your application logic replace the placeholder you want to use, and use the option "DeletePlaceholder" to remove the ones you don't.
This same approach does not apply to the legacy table ("Word_Export_SetLegacyTable"), but something similar can be done using the normal table ("Word_Export_SetTable").
In this case you would not be using the "DeletePlaceholder", but instead fill in the unused placeholders with empty text.
I'm considering to add the possibility to apply style definitions when replacing text placeholders, but it will take some time to be released.
Hope this information helps!
Bruno
Thanks for the comprehensive answer.
good job