Uniface occurence printing
Author: roger.wallin@abilita.fi (rogerw)
Hi, I have never been a Uniface print-expert so this question could be strange/easy..... Having the below code in OGF-trigger. The code prints some occurrences and sends some as e-mail. Is there a way to avoid printing a blank paper if there are just occurrences retrieved that will be send as Epost. The print is initiated in print-trigger and you don't know beforehand that there are no occurrences that should be printed (or at least I wouldn't like to loop and check them in the print-trigger). if($printing=0) done if(wayToSend="Paper") ;Print pbnret.break_1=nret pbdatat.break_1=datat printbreak "break_1" elseif(wayToSend="Email") ;Dont print but send as Email ;pbnret.break_1=nret ;pbdatat.break_1=datat call SendAsEpost() endif clear/e "break_1" return(-1) Regards RogerW.




