Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
KittyKit:
Hi
Okay, I get the point that chart sheet resizing is not supported in MSexcel. Okay, now could you let me know how to adjust the size of the chart in the chart sheet (this I could do by dragging with the mouse) in Excel.
Aspose.Cells also allows to adjust the plot area, please see the following code as sample:
chart.PlotArea.Width = 1500;
chart.PlotArea.Height = 1500;
KittyKit:
I also have found an issue with the Datapoint fore color. I wanted to set custom colors to individual datapoints. At the first instance it seemed to work fine. But by taking a closer look, there was difference in the colors. So I checked in debugging mode.
I used some thing like dp.Area.ForegroundColor = custcol[j];
For example my custcol[0] had a color (255,92,161,40) after this stement is executed dp.Area.ForegroundColor had the value (0,92,161,40) Note that alpha value was earlier 255 and now 0. Never mind, I do not use transparent colors. When I opened the excel sheet, I could see the green color but a DIFFERENT shade. So I tried to right click the datapoint and did "Format Datapoint" and found that the color had a different RGB value as Red=128, Green=128 and blue =0. Transparency (alpha) was also 0.
I even tried assigning directly dp.Area.ForegroundColor = Color.FromArgb(255,92,161,40);
It is just the same as explained above. Could you please explain why is the color not exported properly.
Sincerely
Kit
Well, you need to add your custom color into the color palette before using it. Please see the following documentation links for further details:
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/colors-and-palette.html
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/aspose.cells.workbook.changepalette.html
Thank You & Best Regards,