Ziv-Barber / officegen

Standalone Office Open XML files (Microsoft Office 2007 and later) generator for Word (docx), PowerPoint (pptx) and Excell (xlsx) in javascript. The output is a stream.
MIT License
2.64k stars 472 forks source link

How to assign color property to newline in table cell in word document ? #405

Open adityajoshi94 opened 1 year ago

adityajoshi94 commented 1 year ago

I want to assign different color to newline in table cell. Code snippet is as below:

row_array[row][header] = "name" + "\r\n" + required ;

I want to add different text color for "name" and "required"

Is there any way to add different color to string in table cell with line break?