MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Problem opening map

This is a discussion on Problem opening map within the Development forums, part of the MapPoint 2006/2009 Discussion category; We are having trouble opening our Map Point map from a Word module. when it runs, it opens Map point ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-28-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 6
Problem opening map

We are having trouble opening our Map Point map from a Word module. when it runs, it opens Map point but not our map. Without the last two lines we get an open Map POint application. When we manually close that we get a debug error on the line that opens our file. With the last two lines (the ones with "nothing"), we just get a blank screen (I assumed the MP program was just open and closed).

Here is our code:

Code:
Public Sub OpenDS1()
    Dim objApp As New MapPoint.Application
    objApp.Visible = True
    objApp.UserControl = True
    objApp.OpenMap objApp.Path + "C:\Documents and Settings\Gary Willick\My Documents\GPS-GIS\wsstores12.17.06.ptm"
 
 
 
    Set objMap = Nothing
    Set objApp = Nothing
End Sub
Thank you,

Gary
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 02-28-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,314
Blog Entries: 1
Re: Problem opening map

I made a couple changes, try this code:

Code:
Public Sub OpenDS1()
    Dim objApp As New MapPoint.Application
    objApp.Visible = True
    objApp.UserControl = True
    objApp.OpenMap "C:\Documents and Settings\Gary Willick\My Documents\GPS-GIS\wsstores12.17.06.ptm"
 
 End Sub
__________________
~ 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
  #3 (permalink)  
Old 03-05-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 6
Re: Problem opening map

Eric - Thanks - it worked! on to the next phase.

I will be searching for all stores in a given zip code. Do I have to loop through the entire data set, find all those with the desired zip, and put each one in a push pin set? I then want a route calculated that hops from one store to the next, starting from my source address. Can map POint calculate the best order for this route, or is it done in the order they were found? If the latter, is there some way for me to view the found set of push pins and set an order before driving directions are actually calculated?

GAry
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 03-06-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,314
Blog Entries: 1
Re: Problem opening map

Good! thanks for following up.

Good luck with the next phases. If you get stuck on any part, feel free to pop in here and show the code and it would probably help to post your ptm and any other information.

Try to keep it to one question per post, I'll take a stab at answering your questions now.

Quote:
I will be searching for all stores in a given zip code. Do I have to loop through the entire data set, find all those with the desired zip, and put each one in a push pin set?
It might be easier to export them all using a right-click "Export to Excel" and then look in the Excel spreadsheet.

Quote:
I then want a route calculated that hops from one store to the next, starting from my source address. Can map POint calculate the best order for this route, or is it done in the order they were found?
Yes! see the Help File in the Optimize method.

Quote:
If the latter, is there some way for me to view the found set of push pins and set an order before driving directions are actually calculated?
How do you want to view them? Maybe have a step that dumps them out to Excel and then re-imports after you make adjustments?

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
  #5 (permalink)  
Old 03-06-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 6
Re: Problem opening map

I don't need to export to Excel if teh data was originally there. I can just query excel, import into MP, then have MP calculate the route. I will look at teh optimize function in Help.

I assume I can do all this in code?

GAry
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 03-06-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,314
Blog Entries: 1
Re: Problem opening map

I think it can all be done in code..



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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/problem-opening-map-7192.html

Posted By For Type Date
Extracting the Mappoint 2002 Points of Interest - MapPoint Articles - MP2K Magazine This thread Refback 02-28-2008 11:47 PM

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
Opening VBA editor for mappoint Brock MapPoint 2006/2009 Discussion 2 01-15-2007 08:06 AM
MapPoint C# Job Opening Eric Frost News and Announcements 0 12-17-2006 08:30 AM
MapPoint "There was a problem opening ..." With Or eric.hill MapPoint 2006/2009 Discussion 2 04-03-2006 08:48 PM
Opening a 2000 file FDPoint MapPoint 2006/2009 Discussion 0 06-03-2004 06:35 AM
Opening a new map takes about 10 sec ?!?!?! Anonymous MapPoint 2006/2009 Discussion 1 07-25-2002 12:43 PM


All times are GMT -5. The time now is 12:20 AM.


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

Cheap Ski Holidays Canada
Book cheap ski holidays to Canada online at Holiday Hypermarket. Why not use our simple ski holiday search to find the cheapest deals?

Turkey Weather
Check out Turkey Weather - Travel Counsellors details information on Turkey including, weather, flights and accommodation.

Holidays Cuba
When you book holidays in Cuba you will find a fascinating country with a heady combination of Spanish, African and Caribbean influences. Check our great deals.

Maldives Holidays
If you are looking for a serene, laid back break in the sunshine, Maldives holidays are the choice for you. Be enchanted by the Maldives!

Morocco
Gain insight on your holiday destination with the ULookUBook travel guides. Find out about Morocco and its customs online. Make an informed decision when you make a booking.

Cheap Travel
Travel.co.uk has some excellent offers on cheap travel. Click here.

Cheap Sharm Holidays
Get info on cheap Sharm holidays at On The Beach, and enjoy Egyptian nightlife!


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