home *** CD-ROM | disk | FTP | other *** search
Wrap
/* $VER: PrintBorders.rexx 1.0 (22.01.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 extension drawborder x+.5 y+.5 x+4 y+3.5 borderstyle '"'stem.i'"' "page" page drawtextobj x+1 y+.25 infront "page" page selecttext at x+1 y+.25 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