Section - 5 : PDF417 DAL Functions
You can also use the following DAL functions to implement a PDF417 solution:
Registering the functions
Since these DAL functions are not registered by default, you must register them in the INI file. This will look something like this:
< DALFunctions >
Keyword = DLL->FunctionName
Where Keyword left of the equals sign represents the DAL script function name you want to register.
To the right of the equals sign, DLL->FunctionName represents a DLL to load and the exported function name associated with the script function.
Registered in this manner, you can then reference these functions in a DAL script just like any other built-in function. For instance, you could register these functions as shown here:
< DALFunctions >
CreateNYAAMVAData = P417W32->P417DalCreateNYAAMVAData
CreatePDF417Barcode = P417W32->P417DalCreatePDF417Barcode
And then refer to them as CreateNYAAMVAData() and CreatePDF417Barcode() in your DAL scripts.
You could also register the functions as shown here:
< DALFunctions >
NYAAMVA = P417W32->P417DalCreateNYAAMVAData
PDF417 = P417W32->P417DalCreatePDF417Barcode
And then refer to them as NYAAMVA() and PDF417() in your scripts. How you register these functions is up to you, just make sure the name you use is descriptive.
Both DAL functions work virtually identical to the PDF417 rules.
P417DalCreateNYAAMVAData
Use this function to create the data you want to place in the bar code.
Syntax
P417DalCreateNYAAMVAData (DALVariableName, RequiredLevel, INS_Key)
| Parameters | Description |
|---|---|
| DALVariableName | Specifies the name for the DAL variable that will contain the 570 bytes of formatted data be stored into a PDF417 bar code by a later call. You can make several calls using this data to create bar codes of different sizes and locations, but which contain the same data. Keep in mind that this function is typically run once, while the CreatePDF417Barcode function can be called several times using the same source DAL data. |
| RequiredLevel | The New York application defines a number of variable data elements to be included in the bar code. Some of these elements are required. This parameter lets you decide when and to what extent to check for these required data elements. If you enter one (1), if any required fields are missing from the data, an error is issued for each missing field. If you enter two (2), if any required fields are missing from the data, a warning is issued for each missing field. If you enter three (3), processing continues and no errors or warnings are issued if required fields are missing. The default is 3. Other INI options control whether the Rules Processor continues processing or stops on errors and warnings. These options are documented in the Rules Processor System Guide. |
| INS_Key | Each insurance company that writes auto insurance for drivers in New York will receive a unique key signature. This value is an armored hex string. This parameter specifies that key. If you omit this parameter, you must include this information in the INI file. For security reasons, you may want to have the source code to this rule customized to hardcode the constant key value into the rule. The base version does not provide this option. If you use the INI file to provide the information, specify the value as shown here: < NYAAMVA> Ins_Key = value |
This function returns DALERR_SUCCESS if successful. Otherwise, it returns DALERR_USER and shows a dialog.
P417DalCreatePDF417Barcode
Syntax
P417DalCreatePDF417Barcode (DALVariableName, FontID, BarCodeName or BoxName, ECCLevel, TopCoord, BottomCoord, LeftCoord, RightCoord)
This function returns DALERR_SUCCESS if successful. Otherwise, it returns DALERR_USER and shows a dialog.