←Select platform

SaveFields(string) Method

Summary

Saves field data for the specified file.

Syntax

C#
VB
C++
Java
public void SaveFields( 
   string fileName 
) 
  
Public Overloads Sub SaveFields( _ 
   ByVal fileName As String _ 
)  
public void saveFields( 
   java.lang.String string 
) throws java.lang.Exception; 
public: 
void SaveFields(  
   String^ fileName 
)  

Parameters

fileName
The path of the file to save.

Example

For a complete example on using the forms recognition and processing, refer to the FormProcessingEngine example.

This example save form fields to a file.

C#
VB
using Leadtools; 
using Leadtools.Barcode; 
using Leadtools.Codecs; 
using Leadtools.Forms.Common; 
using Leadtools.Ocr; 
using Leadtools.Forms.Processing; 
using Leadtools.Forms.Recognition; 
using Leadtools.Forms.Recognition.Barcode; 
using Leadtools.Forms.Recognition.Ocr; 
 
/// This method saves master form fields to the specified filename. 
private void SaveMasterFormFields(FormProcessingEngine processingEngine, MasterForm form, string fieldsFileName) 
{ 
   processingEngine.Pages.Clear(); 
   processingEngine.Pages.AddRange(form.ProcessingPages); 
   processingEngine.SaveFields(fieldsFileName); 
} 
Imports Leadtools 
Imports Leadtools.Barcode 
Imports Leadtools.Codecs 
Imports Leadtools.Forms.Common 
Imports Leadtools.Ocr 
Imports Leadtools.Forms.Processing 
Imports Leadtools.Forms.Recognition 
Imports Leadtools.Forms.Recognition.Barcode 
Imports Leadtools.Forms.Recognition.Ocr 
 
''' This method saves master form fields to the specified filename. 
Private Sub SaveMasterFormFields(ByVal processingEngine As FormProcessingEngine, ByVal form As MasterForm, ByVal fieldsFileName As String) 
   processingEngine.Pages.Clear() 
   processingEngine.Pages.AddRange(form.ProcessingPages) 
   processingEngine.SaveFields(fieldsFileName) 
End Sub 

Requirements

Target Platforms

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

Leadtools.Forms.Processing Assembly