I have just started looking at creating SVG images of Excel charts using Flexcel. These are from files I create with Flexcel. The basics are very simple and clean and fast, but unfortunately I am seeing some weirdness in the axis tick labels. They bear no resemblance to reality. Hopefully I can get a couple opf screen shots in here...
This is the right and bottom axis when I open the file in Excel
This is the right and bottom axis when I include the SVG file in Word or PowerPoint.
I have looked in the SVG file using Notepad++ and indeed the text characters do appear to be what is shown in Word, so it looks like the SVG file is not correct.
This is from Flexcel for VCL version 7.14. In case it makes any difference I am simply assigning the Flexcel workbook to the SVG exporter immediately after creating the file, rather than creating a new Workbook object and loading from disk...
//quick test of SVG
var Svg: TFlexCelSVGExport:= TFlexCelSVGExport.Create(xls, true);
try
if Svg.Workbook = nil then
Svg.Workbook:= TXlsFile.Create;
//Svg.Workbook.Open(FileName);
Svg.AllowOverwritingFiles:= true;
Svg.AllVisibleSheets:= false;
Svg.SaveAsImage(
procedure (x: TSVGExportParameters)
begin
x.FileName := TPath.ChangeExtension(FileName, '') + '' + x.Workbook.SheetName + '' + IntToStr(x.SheetPageNumber) + '.svg';
end);
finally
Svg.Free;
end;
Any thoughts or help greatfully accepted
Dave Martel