Necessary settings
The following necessary settings are used when configuring OCR to work with Self Entry module:
• web.config:
<add key="EnableOCR" value = "1"/>
• To integrate with existing pages
• In GuestLookup.aspx, GuestInfo.aspx and GuestData2.aspx files, add the following line between the <HEAD> and </HEAD> tags:
<script type="text/javascript" src="js/sessvars.js"></script>
• Add the following line just above the </FORM> tag:
<%=strOCR%>
• If running older pages than 4057, add the folder js (which contains four .js files) to the root of the virtual directory (usually C:\Inetpub\wwwroot\Self-Entry). The .js files are contained in the 4056b Self Entry pages update (or later).
• C:\Inetpub\wwwroot\SelfEntry\XML_Config\Pages.xml − In order for the information to be filled into the GuestData2.aspx page’s birthdate, gender, height and weight fields, the birthdate control must be set up as a text box and not a dropdown. C:\Inetpub\wwwroot\SelfEntry\XML_Config\Pages.xml file is configured as follows for the birthdate:
<DynamicControls_GD2>
<Name>g_BirthDate</Name>
<WebControl>DateText.ascx</WebControl>
<LabelText>Birthdate:</LabelText>
<LabelCSS>lblText</LabelCSS>
<DBField>g.birth_date</DBField>
<Required>TRUE</Required>
<RequiredText>Invalid Date</RequiredText>
<RequiredCSS>lblInfoAlert</RequiredCSS>
<InfoLabelText>mm/dd/yyyy</InfoLabelText>
<InfoLabelCSS>lblText</InfoLabelCSS>
</DynamicControls_GD2>
• The Pages.xml file zip code section needs to use the SingleText.ascx control and not the SingleTextAPB.ascx control if you are using OCR scanning.