VAR XlApplication: 'Microsoft Excel 11.0 Object Library'.Application"; XlWorkBook: 'Microsoft Excel 11.0 Object Library'.Workbook"; XlWorkSheet: 'Microsoft Excel 11.0 Object Library'.Worksheet"; XlRange: 'Microsoft Excel 11.0 Object Library'.Range"; XlChart: 'Microsoft Excel 11.0 Object Library'.Chart"; PROCEDURE CREATE(XlApplication); XlWorkBook := XlApplication.Workbooks.Add(-4167); XlWorkSheet := XlApplication.ActiveSheet; XlWorkSheet.Name := 'Report'; ... // filling data XlRange := XlWorkSheet.Range('a1:af10'); XlChart := XlWorkBook.Charts.Add; XlChart.ChartWizard(XlRange,4,4,1,0,1,1,'Chart'); // XlChart.SeriesCollection(1).XValues := '=Report!R2C2:R2C32';
XlChart.SeriesCollection(1).XValues = "=Report!R2C2:R2C32"
Comments
XLChart.SeriesCollection('1').XValues('=Report!R2C2:R2C32');
Best Regards
Martin
"You have specified an unkknown variable XValues"
Hi,
I have got similar problems here.
Do you already have a solution for your problem?
Rolf
xlChart.ChartWizard(Source,Gallery,Format,PlotBy,CategoryLabels,
SeriesLabels,HasLegend,Title,CategoryTitle,ValueTitle,ExtraTitle)