| | Eric Frost 08-08-2003, 01:47 PM This article shows how to access the MapPoint API from Perl using the Win32::OLE module. Topics include basic Perl syntax, how to call MapPoint methods, and how to set MapPoint API properties.
Read the full article here: http://www.mp2kmag.com/articles.asp?ArticleID=100&key=perl.automate.mappoint Anonymous 09-21-2003, 12:20 AM i ran Eric's perl script about automating MapPoint with perl and got error:
"Win32::OLE<0.1603> error 0x800706ba: "The RPC server is unavaiable""
Does anyone know what the problem it is?
Thanks,
Tom Eric Frost 09-21-2003, 09:08 AM Is MapPoint 2002 installed? I think it would be this line that is failing:
my $MapPoint = Win32::OLE->new('MapPoint.Application', 'Quit');
I don't know. Anonymous 09-22-2003, 11:46 PM Is MapPoint 2002 installed? I think it would be this line that is failing:
my $MapPoint = Win32::OLE->new('MapPoint.Application', 'Quit');
I don't know.
Eric,
Thanks for your response.
MpaPoint 2002 is installed in my machine. You are right, it is failing at line 14. Do you know how to fix this?
Thanks,
Tom Eric Frost 09-23-2003, 07:00 AM I don't.. what version of Windows? Also, what version of Perl is installed?
Eric Anonymous 09-23-2003, 09:30 PM I don't.. what version of Windows? Also, what version of Perl is installed?
Eric
2000 and perl v5.8.0.
Tom/ Eric Frost 09-25-2003, 11:36 AM I've got the same, 2000 and 5.8.
It looks like a pretty generic error, try this search:
http://www.google.com/search?q=%22The+RPC+server+is+unavailable%22+Perl
Nothing pops out at me right away, but that's how I would try to track it down.
Eric Eric Frost 10-10-2003, 07:26 AM There is some discussion about the article on PerlMonks - http://www.perlmonks.org/index.pl?node_id=297733
Also, this article recently appeared in TechTrax at -
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=206
Eric bigRahn 12-20-2003, 10:57 AM Hey Eric.
Using MP2004 on XP Pro, this worked with no problems at all. Pretty sweet.
Only hard part for me was finding the files afterwards, since I have no Perl knowledge. (Otherwise, I would modify to put them somewhere known.)
(If you're wondering, they are in directories under "My Documents".)
I've been putting off learning perl for quite a while. This may help give me incentive to do it now.
-Rahn Eric Frost 12-20-2003, 05:23 PM Hi Rahn,
You are the second person to comment on having to search for the output, sorry about that. I will amend the article.
Have fun with Perl, I'm definitely a novice but coincidentally just recently found some powerful cgi/perl scripts I plan to spend some quality time delving into in the next few weeks :-)
Eric Eric Frost 12-20-2003, 08:52 PM Concidentally again I just spotted this: "Perl is 16 - Happy Birthday"
Figured I'd throw you a link: http://use.perl.org/articles/03/12/18/1411200.shtml
Eric Anonymous 12-22-2003, 01:00 AM this is perl script is really really helpful, thanks! :) Anonymous 07-15-2004, 02:44 PM Hello all!!!!
Erik, Thanks for the script, It's great. Now all i have to do it try to figure out the inscutable microsoft vb documentation into perl......
Question about pushpins.
I've got pushpins linked to data, but every time i update them, the little information balloons disappear. How do i force them to reappear for each individual pushpin?
Also, how can I change the color of individual pushpins? There seems to be very little documentation on the subject.
Keep in mind I'm doing this with perl, On win2k with MapPoint 2004.
Thanks.
Freen | |