Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainSaveConfiguration Method / TwainSaveConfiguration(Byte[]) Method
The array of bytes save the current device configuration.





In This Topic
    TwainSaveConfiguration(Byte[]) Method
    In This Topic
    Saves to an array of bytes the current settings of the opened source, e.g. DPI, paper size, color format.
    Syntax
    'Declaration
     
    
    Public Overloads Function TwainSaveConfiguration( _
       ByRef Data() As Byte _
    ) As Boolean
    public bool TwainSaveConfiguration( 
       ref byte[] Data
    )
    public function TwainSaveConfiguration( 
       var  Data: Bytearray of
    ): Boolean; 
    public function TwainSaveConfiguration( 
       Data : byte[]
    ) : boolean;
    public: bool TwainSaveConfiguration( 
       ref byte[]* Data
    ) 
    public:
    bool TwainSaveConfiguration( 
       array<byte>^% Data
    ) 

    Parameters

    Data
    The array of bytes save the current device configuration.

    Return Value

    TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
    Remarks
    Before using this method check that the TWAIN state is TWAIN_SOURCE_OPEN (4) To get the TWAIN state, use the TwainGetState() method.
    See Also