hahaaluo
路人甲
路人甲
  • 注册日期2006-08-05
  • 发帖数146
  • QQ
  • 铜币591枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1252回复:2

各位高手们 ,如何添加MXD文件呢

楼主#
更多 发布于:2006-08-19 16:45
<P>不知道如何把MXD文件添加到AXMAPCONTROL中 请各位高手指点指点</P>
<P>最好是附加上您代码 这样我也好理解是怎么一回事</P>
<P>谢谢了 </P>
喜欢0 评分0
hahaaluo
路人甲
路人甲
  • 注册日期2006-08-05
  • 发帖数146
  • QQ
  • 铜币591枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2006-08-19 21:05
这个只是片段有没有完整C#呢 谢谢
<P>谢谢这位兄台  ~~~~~~~~~</P>
<P>不过我想问有没有C#的呢 </P>
举报 回复(0) 喜欢(0)     评分
gischai
路人甲
路人甲
  • 注册日期2004-03-16
  • 发帖数10
  • QQ
  • 铜币63枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2006-08-19 17:42
<H1>MapControl2 LoadMxFile Example</H1><CODE><PRE><FONT color=green>'Load an ArcMap document</FONT>
MapControl1.LoadMxFile "C:\temp\myDocument.mxd"

<FONT color=green>'Load an ArcMap template</FONT>
MapControl1.LoadMxFile App.Path ; "\myDocument.mxt"

<FONT color=green>'Check and load an ArcMap document</FONT>
Dim sFilePath as String
sFilePath =  App.Path ; "\..\..\myDocument.mxd"
If MapControl1.CheckMxFile(sFilePath) Then
  MapControl1.LoadMxFile sFilePath
End If

<FONT color=green>'Load a password protected ArcReader document</FONT>
MapControl1.LoadMxFile "C:\temp\myDocument.pmf", , "myPassword"
</PRE></CODE>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部