You are here: GdPicture.NET > Documentation > Classes > GdViewer Class > GdViewer Methods > Loading Documents (Image, PDF & Metafile) > DisplayFromFile > DisplayFromFile Method (String, String)
logo.gif
ContentsIndexHome
PreviousUpNext
GdViewer.DisplayFromFile Method (String, String)

Displays a document from a file specifying a password to decrypt it (useful for encrypted PDF).

C#
public GdPictureStatus DisplayFromFile(
    String FilePath, 
    String PassWord
);
Visual Basic
Public Function DisplayFromFile(
    ByVal FilePath As String, 
    ByVal PassWord As String
) As GdPictureStatus
Parameters
Parameters 
Description 
FilePath 
The path of the document to display. If this parameter is empty, prompts the user to select a file.  
PassWord 
Sets the password to use for reading the content of a PDF document.  
Returns

A member of the GdPictureStatus enumeration.

Supported formats are RAW, PICT, PDF, BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PGM, PFM, RPPM, RPGM, RPBM, PCX, XPM, XBM, WBMP, TGA, SGI, Sun RAS, PSD, MNG, Kodak PhotoCD files, KOALA files, JP2, J2K, JNG, JBIG, IFF, HDR, Raw Fax G3, EXR, DDS and Dr. Halo files.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.