←Select platform

SaveCustomDSData Method

Summary
Saves the custom data source data to a file.

Syntax
C#
C++/CLI
Python
public void SaveCustomDSData( 
   string fileName 
) 
public: 
void SaveCustomDSData(  
   String^ fileName 
)  
def SaveCustomDSData(self,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.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.