阅读:1328回复:1
关于保存mapcontrol中的图片问题!!
<P>这是帮助里的一个例子,为什么下面那句话有问题?</P>
<P>dim .............</P> <P>set m_pMapDocument = New MapDocument</P> <P>'Open a file dialog for saving map documents<BR> dlgCommon.DialogTitle = "Save Map Document As"<BR> dlgCommon.Filter = "Map Documents (*.mxd)|*.mxd"<BR>dlgCommon.ShowSave</P> <P> 'Exit if no map document is selected<BR> Dim sFilePath As String<BR> sFilePath = dlgCommon.filename<BR> If sFilePath = "" Then Exit Sub<BR> <BR> If sFilePath = m_pMapDocument.DocumentFilename Then<BR> 'Save changes to the current document<BR> SaveDocument<BR> Else<BR> 'SaveAs a new document with relative paths</P> <P><BR> <FONT color=#de1039> m_pMapDocument.SaveAs sFilePath, True(这句有自动化错误)</FONT></P> <P><BR> 'Open document<BR> OpenDocument (sFilePath)<BR> MsgBox "Document saved successfully!", , "Saved Document"<BR> End If</P> <P>End Sub</P> |
|
1楼#
发布于:2005-11-04 15:16
<P>我也有这个问题。据说需要打sp3补丁。</P>
<P>我这里一直打不上,所以也不确定。</P> |
|
|