zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::OLE qw(in with); use Win32::OLE::Const; use Win32::OLE::Const 'Microsoft MapPoint'; $Win32::OLE::Warn = 3; # die on errors... @states= qw (iraq iran); my $MapPoint = Win32::OLE->new('MapPoint.Application', 'Quit'); my $Map = $MapPoint->NewMap(); my $Results = $Map->FindPlaceResults("Virginia"); my $second = $Map->findPlaceResults("Maryland"); my $Location = $Results->Item(1); $Location->GoTo; my $secLocation = $second->Item(1); my @ary = ($location,$secLocation); my $x = $Map->Shapes->addPolyLine(@ary); # Fails # More below here
undef$/;$mmm="J\nutsu\nutss\nuts\nutst\nuts A\nutsn\nutso\nutst\nutsh\ +nutse\nutsr\nuts P\nutse\nutsr\nutsl\nuts H\nutsa\nutsc\nutsk\nutse\n +utsr\nuts";open($DOH,"<",\$mmm);$_=$forbbiden=<$DOH>;s/\nuts//g;print +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OLE & Array (MapPoint addPollyLine)
by jand (Friar) on Oct 09, 2003 at 15:31 UTC | |
by zakzebrowski (Curate) on Oct 09, 2003 at 16:57 UTC | |
|
Re: OLE & Array (MapPoint addPollyLine)
by ericwfrost (Initiate) on Oct 10, 2003 at 21:24 UTC |