GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / DisplayFromFile Method





In This Topic
DisplayFromFile Method (GdViewer)
In This Topic
Loads documents or images from a file and subsequently displays it in the GdViewer control.
Overload List
OverloadDescription
Loads a document from a file according to a file path you have specified and subsequently displays it in the GdViewer control. The document previously displayed in the control will automatically close.

All document formats currently supported by the toolkit are listed here.

The BeforeDocumentChange and the AfterDocumentChange events are raised just before and right after the document is displayed in the GdViewer control. Both events are only raised if the document has been successfully loaded.

Be aware that the required file is locked for another use by default when loading. To avoid this, set the ForceTemporaryMode property to true before loading to tell the toolkit to use a temporary copy of the specified file.

 
Loads a document from a file according to a file path you have specified and subsequently displays it in the GdViewer control. The document previously displayed in the control will automatically close.

This method is especially useful for encrypted PDF documents, as you are allowed to enter a password to decrypt the document for reading its content.

All document formats currently supported by the toolkit are listed here.

The BeforeDocumentChange and the AfterDocumentChange events are raised just before and right after the document is displayed in the GdViewer control. Both events are only raised if the document has been successfully loaded.

Be aware that the required file is locked for another use by default when loading. To avoid this, set the ForceTemporaryMode property to true before loading to tell the toolkit to use a temporary copy of the specified file.

 
See Also