SaveCustomDSData Method

Summary
Saves the custom data source data to a file.
Syntax
C#
C++
public void SaveCustomDSData( 
   string fileName 
) 
vb[VB Syntax] 
Public Sub SaveCustomDSData( _ 
   ByVal _fileName_ As String _ 
) 
public: 
void SaveCustomDSData(  
   String^ fileName 
)  

Parameters

fileName
String containing the filename to use to save the custom data source.

Remarks

This method will save the custom data source to a file. To update the custom data source from a file, call UpdateCustomDSData method

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void CustomDSDataExample(IntPtr parent, string fileName) 
{ 
   TwainSession session = new TwainSession(); 
 
   try 
   { 
      session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
      session.SaveCustomDSData(fileName); 
 
      session.Acquire(TwainUserInterfaceFlags.Modal | TwainUserInterfaceFlags.Show); 
 
      session.UpdateCustomDSData(fileName); 
   } 
   catch (Exception ex) 
   { 
      MessageBox.Show(ex.Message); 
   } 
 
   session.Shutdown(); 
} 
Requirements

Target Platforms

Help Version 22.0.2022.4.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.