Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Can't Open .dspx File

$
0
0
Hi Rizky,

I use this Code to open the .dspx file and it works well.
The shape files are at the same folder as the .dspx file?
Dim dlg = New OpenFileDialog()
            dlg.Filter = AppManager1.SerializationManager.OpenDialogFilterText

            If dlg.ShowDialog(Me) <> DialogResult.OK Then

                Return
            End If
            Try
                'use the AppManager.SerializationManager to open the project
                Me.Cursor = Cursors.WaitCursor
                AppManager1.SerializationManager.OpenProject(dlg.FileName)


            Catch generatedExceptionName As IOException
                MessageBox.Show(Me, "Could not open the specified map file" + dlg.FileName, "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
            Catch generatedExceptionName As XmlException
                MessageBox.Show(Me, "Failed to read the specified map file" + dlg.FileName, "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
            End Try
I hope this helps

Thomas

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>