필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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

채택된 답변

Angelo Yeo
Angelo Yeo 2023년 7월 11일
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

추가 답변 (0개)

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!