Streen has asked for the wisdom of the Perl Monks concerning the following question:
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');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Excel and Win32::OLE
by Nkuvu (Priest) on Apr 29, 2004 at 18:08 UTC | |
by Streen (Sexton) on Apr 30, 2004 at 08:37 UTC | |
by bmann (Priest) on Apr 30, 2004 at 16:58 UTC | |
by Streen (Sexton) on May 07, 2004 at 13:24 UTC | |
by bmann (Priest) on May 07, 2004 at 15:19 UTC | |
| |
|
Re: Problem with Excel and Win32::OLE
by jdporter (Paladin) on Apr 29, 2004 at 19:47 UTC | |
by bmann (Priest) on Apr 29, 2004 at 20:52 UTC |