Sprache auswählen

Q: My customer has a document, which needs to be printed X times. On the first page of each copy, there must be a unique number, which has to be increased per copy.

A: The theory:Define a form with "Forms & Field Installer" (F&FI) which positions an ELP variable on the place you need the counter . This form is inserted on every copy. Therefore the form number needs to be over 25000, otherwise the form would be only loaded once on the first page and will not be increased on every copy.The insertion of the form is done with an ELP_Command The counter itself is increased by a search of a unique information in the form.

The practice:

Start the F&FI and generate a new form, which positions the variable number on the page and define the variable within that form. The variable nameshould be #MyCounter#"Then generate with the MS Word Macro of F&FI a new form with macro number over 25000(!). This will tell ELP to reload the form on every page used. Here used 25555As macros are usually also searched, the term #MyCounter# will be replaced with its actual value defined at the beginning of the process in Section GLOBAL).

[GLOBAL]

; Defines the first counter value, so start with 100, as the counter increase is found before the value is printed
; #'s are not needed, as they are surrounded automatically

Variable=#MyCounter#:99

; Prints on every first page the form 25555, which is always reloaded

; K10; Prints 10 copies
; C1:1F25555; prints the form 25555 on every page
; D1; Default copy definition is the first copy, so on all first pages will be printed the form 25555

ELP_Command=K10;C1:1F25555;D1;

[Increase Counter]

; Search a unique data in the macro in order the counter can be increased
; While writing out the macro definition 25555 is found then

OutSearch_Binary=25555Y

; increase counter by 1

Counter=#MyCounter#

Tips:

The F&FI may also help you to encode the counter as a barcode.

In order to store the last counter value and reload it for the next job change the rule GLOBAL to this:

[GLOBAL]

;Reads all stored variables from the file

Variable_File=#ELP_FORMS_PATH#ELP_Counter.var

; Stores the value and name of the variable #MyCounter# at the process end into the provided file

Variables_Store=#ELP_FORMS_PATH#ELP_Counter.var;#MyCounter#
ELP_Command=K10;C1:1F25555;D1;

If you want to get a printer specific counter, then add into the file name the variable #PRINTERNAME#

Instead of #MyCounter# those default variables can be used as well:

#JOB_COUNTER# Unique Counter for each job, use key JOBCOUNTER
#ACCTOTALPAGES# Actual page counter over all pages and copies
#PAGECOUNT# Within a copy
#COPYCOUNT# The copy counter, e.g. for watermarks or as above

As a last example here the simply GLOBAL rule for the copy counter watermark, also

[GLOBAL]

ELP_Command=K10;C1:1F25555;D1;

This is all what is needed, beside the usage of the variable#COPYCOUNTZ# in the form 25555, maybe done with the F&FI.

 

Related articles: Archiving, Distribute data streams, Counter

 

Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern (Tracking Cookies). Sie können selbst entscheiden, ob Sie die Cookies zulassen möchten. Bitte beachten Sie, dass bei einer Ablehnung womöglich nicht mehr alle Funktionalitäten der Seite zur Verfügung stehen.