Using the latest version (7.9 downloaded 2 days ago. I tried running the ChartAPI demo which worked fine in 7.8. Now when I create the Excel file with the chart and let the demo open the file in Excel I get a warning that the file is broken.
If I let Excel "repair" the file it deletes the entire graph.
If I comment out the 3 lines (uChartAPI.pas lines 97...)
TextAttributes := TDrawingTextAttributes.Create(nil, 'en-US', '', 16, TRUE, nil,
NullableTDrawingUnderlineStyle.Null, NullableTDrawingTextStrike.Null, nil,
NullableTDrawingTextCapitalization.Null, NullableTDrawingCoordinate.Null,
nil, nil, nil, false, false, false, 0, '');
TextFill := TSolidFill_Create(TDrawingColor.FromRgb($80, $80, $80));
RunProperties := TDrawingTextProperties.Create(TextFill,
nil,
nil,
nil,
TDrawingUnderline.Null,
TThemeTextFont.Create('Calibri Light'),
nil,
nil,
nil,
TDrawingHyperlink.Null,
TDrawingHyperlink.Null,
false,
TextAttributes);
...then the Excel file loads fine, so I guess the defaults for the RunProperties are "safe", but something about the settings in the demo are the problem.
Any ideas?