ELP uses a very nice and usually easy to handle trick, to sort the printed documents. Actually this is done by the windows operating system itself. ELP searches for all needed information in the data stream like Zip Code Country etc and then archives in the frist step the job using exact those variables. So all jobs are sorted automatically. Then a second queue puts the OMR marks on the pages, but only if the amount of pages are less or equal the amount of pages the inserter is able to handle.

If the jobs does arrive as a complete mail merge print job, then first split the job into its single documents.(This is not shown here)

For a better explanation for the Postal Optimization implementation this example uses 2 inifiles. The default executed convert.ini does:

[GLOBAL]

;. . . Standard settings

; Define the needed variables and initialize them

Variable=#MyCustomerNo#:""

; Turn it on to fimnd last page nummber for OMR handling

PreParsing=ON

[ELP_OMR]

; use this infile for any data coming into ELP OMR Queue

IniFile=#ELP_FORMS_PATH#ELP_OMR.ini

[Get Custmer Number]

Search_Windows_new=CustomerNo:
StoreNextWordToVarianle=#MyCustomerNo#
ReadOnlySearchKeys=ON

[Is it an invoice?]

Trigger_Windows_new=InvoiceNo:

; then do not print

NoPrinting=ON

; But store the job to the OMR_Wait_Archive directory, named by the previous collected variables

OutArchiveDir=#ELP_FORMS_PATH#OMR_Wait_Archive;inv_#MyCustomerNo#.prn

; Instead of creating for each document single fields in the archive,

; the job is added, just in case an archived document with the Customer number already exist

OutArchivePostalOptimized=ON

; Up to here all jobs which needed to be stored are processed and all the other ones are simply
; printed, if they are not coming through the ELP_OMR queue.
; Finally the convert.ini does need to process the trigger, that manages to print all stored files.
; So add also those lines:

[Trigger file for releasing all stored OMR jobs]

search_binary=Start all collected OMRjobs

; then do not print

NoPrinting=ON

; and call an external batch process to reenter the archived data to queue with queue and share name: ELP_OMR

callnoprint=#ELP_FORMS_PATH#OMR_PRINT.BAT;OFF

; exit

Exit=ON

[GLOBAL]

; Defines all needed OMR commands (use rule assistant for defining them)

; Turn OMR on

OMR_ENABLED=ON

; settings type of OMR

OMR_TYPE=STIELOW
OMR_POSITION=200,0,0
OMR_PARITY=ON
OMR_SEQUENCECONTROL=8

; define the lines

OMR_LineHeight=.5
OMR_LineWidth=6.5
OMR_LineDistance=4.23

; Enable continous sequence control counting.

OMR_CollectJobs=ON

; Put insertion command always on last page.

OMR_UseReadPageCounter=#PREPARSEPAGECOUNT#

; Note: If the job does have more pages then the machine can add into envelope, then move the job out into another output tray, so they can be inserted by hand.

 

[Test for amount of pages]

; the first trigger becomes always true

Trigger_Binary=1

; then check upon the maximum pages to be put into the envelope using the secondary trigger key:

Trigger_Variable=#PREPARSEPAGECOUNTER#>8

; perform an ELP command, as job must go to another out tray

ELP_COMMAND=C1M4;

; and turn the OMR OFF

OMR_ENABLED=OFF

; If on every page the shipping address is printed, then you can remove the second rule and add the following key into the section global above.

OMR_MAXCOLLECTPAGES=8

REM This DOS batch file is needed to resend the collected jobs to the OMR queue.

REM The file is located in Workpath folder (default: \ProgramData\Welp).

REM send all files from archive to the OMR queue, file per file. The receiving queue has the share name ELP_OMR

FOR %%i in (c:\ProgramData\Welp\OMR_Wait_Archive\*.*) do copy /b %%i \\127.0.0.1\ELP_OMR

REM and then delete all files

del /Q c:\ProgramData\Welp\OMR_Wait_Archive\*.*

 

Hint: