Hi,
I am using aspose dll version 7.1.1.0 for generating excel report. I am using "SetTwoColorGradient()" function for gradient backgroud in cell. But when i assign second color as red in this function the output give blue and vice versa same with yellow and cyan........
Below you find the code snippet that i used-
case "RED":
objStyle.SetTwoColorGradient(System.Drawing.Color.White, System.Drawing.Color.Blue, Aspose.Cells.Drawing.GradientStyleType.FromCenter, 1);
break;
case "GRAY":
objStyle.SetTwoColorGradient(System.Drawing.Color.White, System.Drawing.Color.Gray, Aspose.Cells.Drawing.GradientStyleType.FromCenter, 1);
break;
case "YELLOW":
objStyle.SetTwoColorGradient(System.Drawing.Color.White, System.Drawing.Color.Cyan, Aspose.Cells.Drawing.GradientStyleType.FromCenter, 1);
break;
case "BLUE":
objStyle.SetTwoColorGradient(System.Drawing.Color.White, System.Drawing.Color.Red, Aspose.Cells.Drawing.GradientStyleType.FromCenter, 1);
break;
default:
objStyle.SetTwoColorGradient(System.Drawing.Color.White, System.Drawing.Color.White, Aspose.Cells.Drawing.GradientStyleType.FromCenter, 1);
break;
I attach the output image herewith.
Please reply me on this asap....
Thanks