View Single Post

  #2 (permalink)  
Old 02-09-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
You can automate the import from excel procedure.
If you are using vb.net you can try this. Create a button that fires this code:

Code:
Sub ImportFromExcel

        'start new instance of mappoint
        Dim objApp As New MapPoint.Application
        Dim objDataSet As MapPoint.DataSet

        'Set up the application
        objApp.Visible = True
        objApp.UserControl = True


        'Let user create a data map
        'This opens the import wizard. 
        'You can then choose an excel file.
        objDataSet = objApp.ActiveMap.DataSets.ShowImportWizard()

        'This just helps demonstrates the example
        Dim oBox As MessageBox
        oBox.Show("Quit", "Quit")
    

        objApp.Quit()
       
 End Sub
You should be able to adapt this.
Hope this is of some use.
Reply With Quote