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





In This Topic
DisplayFromStream Method (GdViewer)
In This Topic
Loads documents or images from a Stream object and subsequently displays it in the GdViewer control.
Overload List
OverloadDescription
Loads a document from an instantiated Stream object according to what 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.

 
Loads a document from an instantiated Stream object according to what 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.

 
Loads a document from an instantiated Stream object according to what you have specified and subsequently displays it in the GdViewer control. The document previously displayed in the control will automatically close.

This method is useful for encrypted PDF documents, as you are allowed to enter a password to decrypt the document for reading its content. It is also very useful for files, that have no header information in their internal structure, like text files or .svg files, as you can specify their document format to allow the toolkit with certainty to recognize the file for display.

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.

 
Loads a document from an instantiated Stream object according to what you have specified and subsequently displays it in the GdViewer control. The document previously displayed in the control will automatically close.

This method is useful for encrypted PDF documents, as you are allowed to enter a password to decrypt the document for reading its content. It is also very useful for files, that have no header information in their internal structure, like text files or .svg files, as you can specify their file name to allow the toolkit with certainty to recognize the document format of the file for display.

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.

 
See Also