MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Using mappoint automation in .NET without GUI

This is a discussion on Using mappoint automation in .NET without GUI within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hey all, I need the Mappoint automation to calculate a few routes using .NET. Everything works fine, however only when ...


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

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



Click here to register

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-31-2007
Software engineer
White Belt
 
Join Date: May 2007
Location: Belgium
Posts: 2
Using mappoint automation in .NET without GUI

Hey all,

I need the Mappoint automation to calculate a few routes using .NET. Everything works fine, however only when I actually display the form that contains the Mappoint automation. The fact is that I need to create a DLL to be used with an Navision Application Server. A Navision Application Server doesn't allow a GUI interface so it crashes if I show the form. There's no solution here, a NAS cannot work with GUI, period.

So my question to you guys, is it possible to use the Mappoint automation without actually displaying the form?

Tnx for the help/suggestions.

rgds,
tsay
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 05-31-2007
Software engineer
White Belt
 
Join Date: May 2007
Location: Belgium
Posts: 2
Re: Using mappoint automation in .NET without GUI

GOT IT!

You have to actually drag & drop the control from the toolbox to your form and then use that variable instead of creating your own in code...

I put the initialize code in the public sub new of the form and in my class I just create a new instance of the form, but never call the show method. This is exactly what I had done before, but instead I had created my own Mappoint control in the public sub new...
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 06-02-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Re: Using mappoint automation in .NET without GUI

Hi,

Thanks for feedback, this benefits other users. Another option could be to not use the control but instead use the object model also without making it visible.
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
automation, gui, mappoint, net


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/using-mappoint-automation-net-without-gui-5916.html

Posted By For Type Date
mappoint.net Web Search - Who.is This thread Refback 10-24-2007 09:53 AM
MapPoint Automation with C/C++ - Part 1 - MapPoint Articles - MP2K Magazine This thread Refback 06-05-2007 10:57 AM
MapPoint Articles - MP2K Magazine This thread Refback 06-04-2007 09:04 AM
Microsoft MapPoint 2006 - MP2K Magazine This thread Refback 06-01-2007 09:48 AM
The Magazine for MapPoint - MP2K Magazine This thread Refback 05-31-2007 10:09 AM

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
MapPoint Automation with C/C++ - Part 1 Eric Frost MP2K Magazine Articles 10 09-15-2006 11:01 AM
MapPoint Automation with C/C++ - Part 2 Eric Frost MP2K Magazine Articles 1 09-20-2005 11:00 AM
Automation -- Unable to kill mappoint.exe Anonymous MapPoint 2006/2009 Discussion 0 02-03-2004 11:12 PM
Error in VBA automation of MapPoint when PO BOX is found JPeters MapPoint 2006/2009 Discussion 2 01-09-2003 10:40 AM
I am using Mappoint with Visual C++ via automation.... Anonymous MapPoint 2006/2009 Discussion 2 07-08-2002 02:07 AM


All times are GMT -5. The time now is 01:43 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