我正在使用c#来打印excel文件的特定单元格.
我在用
我在用
- Application excel = new Application();
- Workbook wb = excel.Workbooks.Open(destPath);
- Worksheet ws = wb.Worksheets[1];
- ws.get_Range(ws.Cells[row,clmn]).Cells.Interior.Color = 36;
到彩色细胞.但是这不工作..
谁能帮我吗..
解决方法
尝试这样的东西
- ws.Cells[row,clmn].Interior.Color = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Red)