dfsh1983
路人甲
路人甲
  • 注册日期2005-08-03
  • 发帖数23
  • QQ
  • 铜币195枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1328回复:1

关于保存mapcontrol中的图片问题!!

楼主#
更多 发布于:2005-11-04 13:50
<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>
喜欢0 评分0
万里云
路人甲
路人甲
  • 注册日期2005-01-14
  • 发帖数114
  • QQ
  • 铜币414枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2005-11-04 15:16
<P>我也有这个问题。据说需要打sp3补丁。</P>
<P>我这里一直打不上,所以也不确定。</P>
女口果人尔能看日月白这段言舌,那言兑日月人尔白勺目艮目青有严重白勺散光 
举报 回复(0) 喜欢(0)     评分
游客

返回顶部