wendymason
IS-IT--Management
Thanks crazybird, that solved the problem. Can you take a look at this:
{IF SUBTOTAL=0}{BEEP}{QUIT}
{GOTO}FIRSTNAME~
{WINDOWSOFF}{PANELOFF}
/wgpd
/rvRECCOUNT~LOOPCOUNT~
{ALERT "When the printer is ready press [OK] to proceed ",,"note",READY}~
REPEAT /rncSURNAME~~
/cSURNAME~ID~
{GOTO}SURNAME~
/rndSURNAME~~
{DOWN}
{SET "print-range";"invoice"}
{SET "print-margin-left";0.5}
{SET "print-margin-right";0.5}
{SET "print-margin-top";0.5}
{SET "print-margin-bottom";0.5}
{SET "print-orientation";"portrait"}
{PRINT}
{WAIT @NOW+@TIME(0,0,5)}
{LET LOOPCOUNT,LOOPCOUNT-1}~
{IF LOOPCOUNT>0}{BRANCH REPEAT}
/wgpe
{WINDOWSON}{PANELON}
{QUIT}
This macro should print out a series of invoices, however, the first invoice does not print out at all and the subsequent invoices are only partially printed. Can you help?
Thanks
{IF SUBTOTAL=0}{BEEP}{QUIT}
{GOTO}FIRSTNAME~
{WINDOWSOFF}{PANELOFF}
/wgpd
/rvRECCOUNT~LOOPCOUNT~
{ALERT "When the printer is ready press [OK] to proceed ",,"note",READY}~
REPEAT /rncSURNAME~~
/cSURNAME~ID~
{GOTO}SURNAME~
/rndSURNAME~~
{DOWN}
{SET "print-range";"invoice"}
{SET "print-margin-left";0.5}
{SET "print-margin-right";0.5}
{SET "print-margin-top";0.5}
{SET "print-margin-bottom";0.5}
{SET "print-orientation";"portrait"}
{PRINT}
{WAIT @NOW+@TIME(0,0,5)}
{LET LOOPCOUNT,LOOPCOUNT-1}~
{IF LOOPCOUNT>0}{BRANCH REPEAT}
/wgpe
{WINDOWSON}{PANELON}
{QUIT}
This macro should print out a series of invoices, however, the first invoice does not print out at all and the subsequent invoices are only partially printed. Can you help?
Thanks