home *** CD-ROM | disk | FTP | other *** search
Wrap
/* $VER: PrintBorders.rexx 1.1 (12.06.97) Copyright 1997 Soft-Logik Publishing Corporation May not be distributed without Soft-Logik Publishing Corporation's express written permission */ OPTIONS RESULTS TRACE OFF /* Make sure rexx support is opened */ IF ~SHOW('L','rexxsupport.library') THEN CALL ADDLIB('rexxsupport.library',0,-30) ADDRESS 'PAGESTREAM' 'newdocument Borders' 'newmasterpage "Default Master Page" 8.5i 11i single portrait' 'openwindow "View 1" page 1' 'extension getborderslist 'stem count=result page = 1 x = 0 y = 0 do i=0 to count-1 x1 = '"'||x+.5||'i"' y1 = '"'||y+.5||'i"' x2 = '"'||x+4||'i"' y2 = '"'||y+3.5||'i"' extension drawborder x1 y1 x2 y2 borderstyle '"'stem.i'"' "page" page x1 = '"'||x+1||'i"' y1 = '"'||y+.25||'i"' drawtextobj x1 y1 infront "page" page selecttext at x1 y1 frontmost "page" page 'insert "'stem.i'"' x = x + 4 if x > 5 then do x = 0 y = y + 3.5 if y > 8 then do y = 0 page = page + 1 end end end i printdocument copies 1 document "Borders" sides both scale actual output grayscale pictures on collate off reverseorder off printblank off printermarks off mirror off negative off closedocument force