var image : TJPEGImage; begin image := TJPegImage.Create; PivotChart1.SaveToJpegImage(image); end;
To see how it works, just look at the demo source (procedure TForm1.HTML1Click)
Best regards,
Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
Create event for TPivotGrid.OnDDChartCreated. In event handler add code
PVChartDDForm.Chart1.SaveToJpegImage
(PVChartDDForm defined in PVChartDD_SRC)
Best regards,
Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment