我正在使用Win32 :: OLE Perl模塊更改圖表中特定數據點的模式。如何使用msoPattern常量將圖案應用於使用Perl的Excel圖表中的系列Win32 :: OLE
我可以利用這樣做:
$chart->SeriesCollection(2)->Points(5)->{Interior}->{Pattern} = xlPatternUp;
例如。要清楚這與預期完全一致。 但是,xlPattern *常量只允許Excel識別模式的子集。看來整套模式是在msoPattern *常量中指定的(至少是我想要使用的特定模式)。
我試圖用msoPattern的一個*以同樣的方式常數:
$chart->SeriesCollection(2)->Points(5)->{Interior}->{Pattern} =
msoPatternWideUpwardDiagonal;
但這並沒有影響。數據點將以「固定」(默認)模式呈現。 我證實,我輸入正確的常量,例如:
use Win32::OLE::Const 'Microsoft Office 12.0 Object Library';
我如何使用msoPattern *常量來改變格局?