Creates a new SingleSelectionField with automatically filled out field values recognized by Ocr.
public SingleSelectionField CreateSingleSelectionField(
List<FormField> formFields,
LeadRect bounds,
int formPageNumber
)
public:
SingleSelectionField^ CreateSingleSelectionField(
List<FormField^>^ formFields,
LeadRect^ bounds,
Int32 formPageNumber
)
def CreateSingleSelectionField(self,formFields,bounds,formPageNumber):
formFields
A FormField list that contains all fields, including the OmrFormField fields within the bounds.
bounds
A LeadRect that represents the location of the SingleSelectionField to be created.
formPageNumber
Master form page number.
A SingleSelectionField field with automatically filled out field values.
Each field value is filled out with the Ocr text recognized on the right side of the corresponding OmrFormField. If no Ocr text is recognized, the user needs to fill out each SingleField value.
using Leadtools;
using Leadtools.Ocr;
using Leadtools.Forms.Common;
using Leadtools.Forms.Processing;
using Leadtools.Codecs;
using Leadtools.Forms.Auto;
///This example shows how to create a SingleSelectionField.
public void AddSingleSelectionField()
{
DiskMasterForm diskMasterForm = GetMasterForm("LeadAnswerSheet_Pattern");
LeadRect bounds = new LeadRect(3160, 3070, 1250, 1240);
FormPages formPages = diskMasterForm.ReadFields();
List<FormField> omrFields = GetOmrFields(formPages);
// Automatically create SingleSelectionField
SingleSelectionField singleSelectionField = diskMasterForm.CreateSingleSelectionField(omrFields, bounds, 1);
formPages.GetPage(1).Add(singleSelectionField);
// Write fields to master form
diskMasterForm.WriteFields(formPages);
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.