←Select platform

UpdateCustomDSData Method

Summary
Updates the custom data source.

Syntax
C#
C++/CLI
Python
public void UpdateCustomDSData( 
   string fileName 
) 
public: 
void UpdateCustomDSData(  
   String^ fileName 
)  
def UpdateCustomDSData(self,fileName): 

Parameters

fileName
String contains file name to get the data to update

Remarks

This method will update the custom data source data for the selected data source. If you need to save the custom data source to a file, call SaveCustomDSData 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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly

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