Can we change font color of specific cell in excel export

Can we change font color of specific cell in excel export

ManiPSManiPS Posts: 28Questions: 12Answers: 0

Can we change font color of specific cell in excel export

Answers

  • allanallan Posts: 61,732Questions: 1Answers: 10,110 Site admin

    Yes - the customize callback of the excelHtml5 button type lets you modify the created spreadsheet. It is a little tricky since you need to modify the XML of the spreadsheet itself, but this example might help.

    For full formatting options check the excelHtml5 documentation. if the style you want isn't in the list of built in styles, you'd need to use the customize callback to add it to the spreadsheet as well.

    Allan

  • ManiPSManiPS Posts: 28Questions: 12Answers: 0
    edited May 2018

    Yes the style i want is not in the list of built in styles. Can you please provide me the quick example for adding custom styles to specific cell spreadsheet and how to?
    Example: i want to change specific column cell font color and border color

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @ManiPS ,

    There's several examples on the Buttons pages to demonstrate how to do this - for example here and here. Hope that helps,

    Cheers,

    Colin

  • alastaire_vicentealastaire_vicente Posts: 1Questions: 0Answers: 0

    @colin Those examples do NOT show how to add styles NOT BUILT IN. @ManiPS is asking for an example that uses styles NOT BUILT IN, but in the examples you posted the styles are BUILT IN. Please advise.

This discussion has been closed.