MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Automating MapPoint with Perl

This is a discussion on Automating MapPoint with Perl within the MP2K Magazine Articles forums, part of the Map Forums category; This article shows how to access the MapPoint API from Perl using the Win32::OLE module. Topics include basic Perl syntax, ...


Go Back   MapPoint Forums > Map Forums > MP2K Magazine Articles

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
Automating MapPoint with Perl

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?...omate.mappoint
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-21-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-21-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
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.
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-23-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Quote:
Originally Posted by Eric Frost
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 09-23-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
I don't.. what version of Windows? Also, what version of Perl is installed?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 09-23-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Quote:
Originally Posted by Eric Frost
I don't.. what version of Windows? Also, what version of Perl is installed?

Eric
2000 and perl v5.8.0.

Tom/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 09-25-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
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=%22Th...ilable%22+Perl

Nothing pops out at me right away, but that's how I would try to track it down.

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 10-10-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
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/P...cle.asp?ID=206

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 12-20-2003
Member
Yellow Belt
 
Join Date: Oct 2002
Posts: 46
Works with no problems

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 12-20-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
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
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
automating, mappoint, perl


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Automating Mappoint using VB vennamreddy MapPoint 2006/2009 Discussion 1 10-07-2004 06:19 AM
Automating Mappoint Anonymous MapPoint 2006/2009 Discussion 3 07-26-2004 03:29 PM
Exporting territories to excel via VBA or perl Anonymous MapPoint 2006/2009 Discussion 0 07-19-2004 02:58 PM
Automating MapPoint with Perl Eric Frost MapPoint 2006/2009 Discussion 0 08-08-2003 06:10 PM
Automating MapPoint with the .NET SDK Anonymous MP2K Magazine Articles 2 10-21-2002 06:41 PM


All times are GMT -5. The time now is 02:47 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54