I am using ASPose.Cells and ASPose.Slides for generating excel sheet and chart object and embedding the generated excel workbook into powerpoint slide using OLE embedding. With this I am able to see the generated chart in powerpoint slide. These all working fine. Now the requirement is to put a background image to the chart. Can you please suggest how do i do this?
If the ASPose.Cells does not support the feature, i am trying to achieve as below:
Create worksheet of type chartsheet and set the background image. now create the chart and set its transparency to 100
Below is the code:
//Add worksheet for Chart
int chartSheetIdx = wrkBook.Worksheets.Add(SheetType.Chart);
Worksheet wrSheet = wrkBook.Worksheets[chartSheetIdx];
wrSheet.IsGridlinesVisible = false;
FileStream fstream = new FileStream(folderPath + "spider-bkg.gif", FileMode.Open, FileAccess.Read);
byte[] b = new byte[fstream.Length];
fstream.Read(b, 0, (int)fstream.Length);
wrSheet.SetBackground(b);