Hi i want to export the color of a few buttons into excel the buttons represent a grid and are created dynamically.
The code I have seem to give me the name of the color and not the actual color of the cells when exported to Excel.
for (int i = 0; i < row; i++)
{
for (int j = 0; j < col; j++)
{
worksheet.Cells[i + 2, j + 1] = (buttons[i][j].BackColor);
}
}