25
Views
4
Comments
[OfficeUtils] Set color text
Question
officeutils
Service icon
Forge asset by Bruno Gonçalves
Application Type
Service

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

2024-06-10 11-39-07
Abhishek Mandloi

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.

UserImage.jpg
davide cannarella

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

UserImage.jpg
Bruno Gonçalves

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

UserImage.jpg
davide cannarella

Thanks for the comprehensive answer.

good job

Davide

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.