I have two worksheets (Data and Chart). Data as the values 10, 20, 30, 40, 50, 60, 70, 80, and 90 listed in column A. Chart has a very simple Bar Graph on it, which gets it’s data from the Data worksheet I just specified. However if I change a value on the Data sheet and submit, the charts do not update.
I would like to know how to programmatically OnSubmitCommand, refresh the Bar Graph as part of the WebGrid WorkSheet.
P.S. The Initial WebGrid is loaded from a Workbook object, which is loaded from an Excel Template (I’m not sure if that matters at all).
Hi,
Currently I have not created the chart with ASPOSE Cells, the charts are part of an excel template that I load. However I could not find an object reference to the charts within the GridWeb object (though I did see some in the WorkBook object). All I really want to know is how to refresh the charts so they pickup on any data changes being made. I have attached a sample, but it’s so bare basic it really isn’t even worth the 5MB.
P.S. GridWeb.SaveToStream fails when chart images are present:
Type ‘System.Drawing.Imaging.ImageFormat’ in Assembly ‘System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ is not marked as serializable
I was trying to save the GridWeb as a MemoryStream and load that MemoryStream into a WorkBook so I could get access to the charts. I guess the charts aren’t stored as charts then, but rather images? How are we supposed to “edit/update” charts with ASPOSE Cells if the chart data isn’t persisted… are we expected to recreate the charts each and every time? and if so, I still have no clue how to do that with a GridWeb.
Is there an easy way to get interchange GridWeb and WorkBook data?
Hi,