将 DOORS 属性字体颜色导出为 Excel 字体颜色

Export DOORS attribute font color to Excel font color

我在 https://www.ibm.com/developerworks/community/forums/html/topic?id=7981c520-ee1b-4a5f-b1f7-510172d2a3bd&ps=25 and have a copy of the GalacticSolutions Excel 导出脚本中看到了讨论。该脚本采用模块单元格中字体的颜色并将其映射到 Excel 单元格填充颜色。我不清楚的是如何采用相同的源颜色并将其映射到 Excel 单元格的文本颜色。
我的源属性是一个枚举,分配的颜色设置字体颜色,如 中所示。也许对我有帮助的最简单的答案是,如果熟悉 GalacticSolutions 脚本的人可以识别将颜色传递给单元格填充颜色的代码,并提供等效的命令来处理字体颜色。 谢谢 卡尔

我在 IBM 论坛上收到了一个答案,并将其复制到这里。

dowhich = "Interior"  //to shade the cell
dowhich = "Font" //to color the font

void excelSetRangeColorOLE( OleAutoObj objExcelRange, int iRGBValue ) { OleAutoObj objExcelInterior = null oleResult( oleGet( objExcelRange, dowhich, objExcelInterior ) ) oleResult( olePut( objExcelInterior, "Color", iRGBValue ) ) }