📄 edn_ esri developer network.mht
字号:
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_NextPart_000_00C2_01C77478.2564F7A0"
Content-Location: http://edn.esri.com/index.cfm?fa=codeExch.sampleDetail&pg=/arcobjects/9.1/Samples/Controls/PageLayoutControl/LoadMapDocument/LoadMapDocument.htm
Thread-Index: Acd0NRXevo5FvFuiSnupBTIDLiX+sA==
Content-Class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896
This is a multi-part message in MIME format.
------=_NextPart_000_00C2_01C77478.2564F7A0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_00C3_01C77478.2564F7A0"
------=_NextPart_001_00C3_01C77478.2564F7A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
EDN (ESRI Developer Network)=20
EDN: ESRI Developer Network
Login=20
EDN (ESRI Developer Network) <http://edn.esri.com/> =20
home documentation library discussion forums downloads code exchange
media center Conferences=20
ESRI.com <http://www.esri.com> | Support <http://support.esri.com> |
More ESRI Sites...
<http://support.esri.com/index.cfm?fa=3DsiteMap.siteguide> =20
EDN Code Exchange
Updated Mar 31, 2007=20
Samples =09
LoadMapDocument
Description:=20
The browse dialog allows users to search and select map documents
(*.mxd, *.mxt and *.pmf), which is loaded into the PageLayoutControl
using the LoadMxFile method. As .pmf map documents can be password
protected then this is checked for using
IMapDocument::IsPasswordProtected. If the document is a password
protected the user will be prompted for the password.=20
Products:=20
Engine: VB6, VC++, C#, VB.NET
Platforms: Windows
Minimum ArcGIS Release: 9.0=20
How to use:=20
[VB6]=20
1. Either run the LoadMapDocument.exe or open the
LoadMapDocument.vbp and run from within the project. (Note the Microsoft
Common Dialog Control (Comdlg32.ocx) is used in this sample).
2. Browse to a map document to load into the PageLayoutControl. The
map document can be an ArcMap document, an ArcMap template, or a
Published Map File.
[VC++, .NET]=20
1. Build and run LoadMapControl.exe
2. Click on "Load Map Document" and browse your file system for
MXD, MXT, or PMF file.
3. If a published map is password protected a password window will
prompt user for the correct password.
[VC++]=20
VC++ Notes=20
1. If you are using Windows NT or Windows 2000, in StdAfx.h file
change commdlg32.ocx destination to your current System32 folder in
Windows directory.=20
VB6 <javascript: tabBox('1','4');> VC++ <javascript: tabBox('2','4');>
C# <javascript: tabBox('3','4');> VB.NET <javascript: tabBox('4','4');>
File Description =09
LoadMapDocument.frm
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_Basic/frmLo
adMapDocument.htm>=20
VB form file for the LoadMapDocument project. =20
Password.frm
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_Basic/frmPa
ssword.htm>=20
VB form file for the LoadMapDocument project. =20
LoadMapDocument.vbp VB Project file. =20
File Description =09
LoadMap.cpp
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/cppLoad
Map.htm>=20
Implementation of LoadMap class. =20
LoadMap.h
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/hLoadMa
p.htm>=20
Header file for LoadMap class. =20
LoadMapControl.cpp
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/cppLoad
MapControl.htm>=20
Implementation of LoadMapControl class. =20
LoadMapControl.dsp Project file for LoadMapControl class. =20
LoadMapControl.dsw Workspace for project file. =20
LoadMapControl.rc Resource file. =20
Password.cpp
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/cppPass
word.htm>=20
Implementation of Password class. =20
Password.h
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/hPasswo
rd.htm>=20
Header file for Password class. =20
resource.h
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/hresour
ce.htm>=20
Resource header file. =20
StdAfx.cpp
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/cppStdA
fx.htm>=20
Standard implementation. =20
StdAfx.h
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/Visual_CPP/hStdAfx
.htm>=20
Header file for Standard implementation. =20
File Description =09
AssemblyInfo.cs=20
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/CSharp/csAssemblyI
nfo.htm>=20
Assembly information. =20
LoadMap.cs
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/CSharp/csLoadMap.h
tm>=20
Class File. =20
LoadMapControl.csproj Project File. =20
LoadMapControl.sln Solution File. =20
Password.cs
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/CSharp/csPassword.
htm>=20
Class File. =20
File Description =09
AssemblyInfo.vb=20
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/VBNet/vbAssemblyIn
fo.htm>=20
Assembly information. =20
LoadMap.vb
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/VBNet/vbLoadMap.ht
m>=20
Class File. =20
LoadMapControl.sln Solution File. =20
LoadMapControl.vbproj Project File. =20
Password.vb
(view code)
<http://edn.esri.com/index.cfm?fa=3DcodeExch.sampleDetail&pg=3D/arcobject=
s/9
.1/Samples/Controls/PageLayoutControl/LoadMapDocument/VBNet/vbPassword.h
tm>=20
Class File. =20
Key Libraries: System, SystemUI, Controls, Carto
Key CoClasses:PageLayoutControl, MapDocument
Key Interfaces: IPageLayoutControl, IMapDocument
Key Members:IsPasswordProtected, LoadMxFile, MousePointer
User comments <javascript:;> Add your comment <javascript:;> =20
Loading ...=20
If you would like to post a comment, please login.
Average Rating:=20
* Rate this Sample <javascript: toggleRatingForm('ratingForm')> .
Loading...
=20
Submit <javascript: submitRating(dataItemId)> =20
Send your comments to: Site Administrator
<http://edn.esri.com/index.cfm?fa=3Dfeedback.websiteform> | Terms of =
Use
<http://edn.esri.com/index.cfm?fa=3Dmisc.termsOfUse> | PRIVACY
<http://www.esri.com/company/privacy.html> | Copyright =A9 ESRI
<http://www.esri.com/company/copyright.html> | Careers
<http://www.esri.com/careers> =20
Visit the ESRI.com Web site. <http://www.esri.com>=20
------=_NextPart_001_00C3_01C77478.2564F7A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=20
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=09
=20
=09
=09
=20
=20
=09
=09
=20
=09
=09
=09
=20
=09
=09
=09
=09
=20
=09
=09
=09
=09
=20
=09
=09
=20
=09
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" =
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Diso-8859-1" />
<meta http-equiv=3D"imagetoolbar" content=3D"no" />
<title>EDN: ESRI Developer Network</title>
=09
<style type=3D"text/css" media=3D"all">
@import url(common/style/ednStyle.css);
</style>
<link rel=3D"shortcut icon" =
href=3D"cid:003801c77435$1741cb28$_CDOSYS2.0" />
<script language=3D"javascript" type=3D"text/javascript" =
src=3D"/common/scripts/ratingsComments.js"></script>
<script language=3D"javascript" type=3D"text/javascript" =
src=3D"http://edndoc.esri.com/common/scripts/dtuelink.js"></script>
<script language=3D"javascript" type=3D"text/javascript" =
src=3D"http://edndoc.esri.com/common/scripts/ns.js"></script>
<script language=3D"javascript" type=3D"text/javascript" =
src=3D"http://edndoc.esri.com/common/scripts/Samples.js"></script>
<script language=3D"javascript" type=3D"text/javascript" =
src=3D"http://edndoc.esri.com/common/scripts/AODev.js"></script>
<script language=3D"javascript" type=3D"text/javascript" =
src=3D"/common/scripts/tabBox.js"></script>
=20
=09
</head>
<body>
<div id=3D"header">
=09
<div id=3D"ednBanner">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -