This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARControl Interface > IARControl.ReloadDocument Method (ArcObjects .NET 10.5 SDK) |
Reloads the currently loaded Published Map File (*.PMF) back into the control.
[Visual Basic .NET] Public Sub ReloadDocument ( _ [ByVal sPassword As String] _ )
[C#] public void ReloadDocument ( string sPassword );
Optional Values
The ReloadDocument method loads the currently loaded Published Map File back into the ArcReaderControl. This resets the ArcReaderControl to the state of the Published Map File on disk, resetting the CurrentView, the extent of the CurrentView and layer visibility.
If a document was password protected when it was published, the user will be prompted automatically for a password, if the password is not passed within the ReloadDocument method. If an incorrect password is supplied twice in succession a custom error will be returned.
2003 800A07D3: No document loaded
The ReloadDocument method triggers the following events:
OnDocumentUnloaded
OnCurrentViewChanged
OnDocumentLoaded
OnCurrentViewChanged
OnBeforeScreenDraw
OnAfterScreenDraw