Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

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, ...

  1. #1
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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.
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  5. #5
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    I don't.. what version of Windows? Also, what version of Perl is installed?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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/

  7. #7
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  8. #8
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  9. #9
    bigRahn is offline 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

  10. #10
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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