the next problem is, i made a chart, via Win32::OLE (finaly I made it *g*) then I tryed to switch on the values (normaly select the column -> right click -> "Format Data Series..." -> "Data Labels" -> Checkbox "Value" on. I recorded a macro to make this via perl, but here also, no error message, but the values are noot displayed.my $newworksheet = $activeWorkbook->Worksheets->Add({Before=>$activeWo +rkbook->Worksheets(1)}) or die $!; $newworksheet -> {Name} = "Chart$Tester"; #the sheet is created -> switch off the gridlines $newworksheet -> DisplayGridlines = 'False';
Thanks for help... and sorry for my bad englishmy $Chart = $ChartSheet->ChartObjects->Add(@Position)->Chart; $Chart->{ChartType} = xlColumnClustered; $Chart->SetSourceData({Source =>$Source, PlotBy => xlColumns}); $Chart->{HasTitle} = 1; $Chart->ChartTitle->{Text} = "$Title"; $Chart->Axes(xlCategory, xlPrimary)->{HasTitle} = 1; $Chart->Axes(xlCategory, xlPrimary)->AxisTitle->{Text} = "Groups"; $Chart->Axes(xlValue, xlPrimary)->{HasTitle} = 1; $Chart->Axes(xlValue, xlPrimary)->AxisTitle->{Text} = "Utilization (in +%)"; $Chart->Location({Where=>xlLocationAsObject, Name=>"$ChartSheet"}); #No Problem till here: $Chart->SeriesCollection(1)->ApplyDataLabels(AutoText=>'True', LegendK +ey=>'False', ShowSeriesName=>'False', ShowCategoryName=>'False', ShowValue=>'True', ShowPercentage=>'False', ShowBubbleSize=>'False');
In reply to Problem with Excel and Win32::OLE by Streen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |