Q: If the word "F-LJESEDEL " or "KONTANTNOTA" is found in the data stream additional copies need to be printed.How can I handle it?

A: Here is the ini-file for solution A, that all document will have the requested form on and usually are printed just in the Original:

[GLOBAL]

ELP=ON

[STHAELP001]

; The default forms handling for printer STHAELP001
; Note D1; does tell ELP to print all copies just the same.

ELP_COMMAND=C1:RPS250S1F1002I1FF;C1:LF1005;D1;

[STHAELP002]

; The default forms handling for printer STHAELP002
; Note: you may add a C2.. or C3.. copy definitions, which is just used if X copies are printed

ELP_COMMAND=C1:RPS250S1F1002I1FF;C1:LF1005;D1;

[Trigger F-LJESEDEL]

; If F-LJESEDEL is found in the data stream, make 3 copies

Trigger_Binary=F-LJESEDEL
ELP_COMMAND_Add=K3;

[Trigger KONTANTNOTA]

; If KONTANTNOTA is found in the data stream, make 2 copies

Trigger_Binary=KONTANTNOTA
ELP_COMMAND_Add=K2;

And Solution B would be to use variables in the ELP_Command, which are replaced at the time the command is executed, which is at the time the data stream is started to be written out.

[GLOBAL]

ELP=ON
Variable=#MyCopyNum#:1

[STHAELP001]

ELP_COMMAND=C1:RPS250S1F1002I1FF;C1:LF1005;D1;K#MyCopyNum#;

[STHAELP002]

ELP_COMMAND=C1:RPS250S1F1002I1FF;C1:LF1005;D1;K#MyCopyNum#;

[Trigger F-LJESEDEL]

Trigger_Binary=F-LJESEDEL
Variable=#MyCopyNum#:3

[Trigger KONTANTNOTA]

; If KONTANTNOTA is found in the data stream, make 2 copies

Trigger_Binary=KONTANTNOTA
Variable=#MyCopyNum#:2

 

Related articles: Rules Theory, Rule Assistant, Add key to rule