Borrar filtros
Borrar filtros

Report generator MIse en forme tableau Colorer le fond d'une ligne de tableau

3 visualizaciones (últimos 30 días)
Mise en forme de tableau avec report generator
je veux colorer le fond d'une ligne de tableau . je chierche à utiliser la proprété Style d'une Row
par exemple
dataTable.row(1).Style = [dataTable.row(1).Style,{RepeatAsHeaderRow(true)}]; fonctionne et répè_te la première ligne de mon tableau
j'essai
dataTable.row(1).Style = [dataTable.row(1).Style,{'backgroundcolor','[1 0 1]'}] nez fonctionne pas
la proprité 'backgroundcolor' n'existe pas
je ne trouve pas la liste des propriétés de " Style "
Comment faire pour colorer une case oou une ligne de tableau dans mon rapport word ?
Comment faire pour cumuler des propriétés dans le Style ?
Merci d'avance

Respuesta aceptada

Angelo Yeo
Angelo Yeo el 11 de Jul. de 2023
Hi Daniel,
  • You can find the properties of mlreportgen.dom.Table class at here.
  • Also, if you want to change the BackgroundColor property, why don't you instead try the following?
dataTable.row(1).Style = [dataTable.row(1).Style,{BackgroundColor("Magenta")}]
  • Last but not least, you need to use hexadecimal RGB format like "#ff00ff" not [1, 0, 1]. This is also documented in the official documentation I mentioned above.
Please kindly accept the answer if it helped.
Best Regards,
Angelo

Más respuestas (0)

Productos


Versión

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!