Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to control the graph size using macros

Status
Not open for further replies.

cmg70

Programmer
Feb 24, 2003
1
ES
I try to write a perl script (OLE interface) to publish a powerplay report. This is the script:
Code:
#!/bin/perl
use Win32::OLE;
my $ChartApp = new Win32::OLE( "PowerPlay.Application") || die "Cannot create object\n";
my $ChartRep = new Win32::OLE( "PowerPlay.Report") || die "Cannot create object\n";
$ChartRep->Open("D:\\cpu.ppr");
my $objPPGraphs=$ChartRep->Graphs(1);
$objPPGraphs->{MaxVisibleBars}=2;
$ChartApp->Select();
$ChartApp->SizeSelected(1200);
$ChartRep->Publish("D:\\temp");
$ChartRep->Close();
$ChartApp->Close();
The question is how to control the size of the graph. I've searched in the object model but I did'nt find any property. The default graph is too small

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top