hiding a stack whilst processing
Posted: Wed May 04, 2016 9:57 pm
Hey Guys,
I need some advice with the code I have below which basically builds a print layout out of another layout. I would like this processing to go on in the background so that there is no 'evidence' of the print stack, I just want it to build the pages up and then stay hidden if that makes sense.
I need some advice with the code I have below which basically builds a print layout out of another layout. I would like this processing to go on in the background so that there is no 'evidence' of the print stack, I just want it to build the pages up and then stay hidden if that makes sense.
Code: Select all
command createPrintPages
set the defaultStack to "Print"
DeletePreviousPage
put the number of cards of stack "Preview" into tTotalPages
go to stack "print"
put 1 into tPageNo
repeat until tPageNo > tTotalPages
put "Grp_Preview " & tPageNo into tGrpName
put "Preview " & tPageNo into tPreviewCardName
put "Print " & tPageNo into tPrintCardName
if tPageNo is not 1 then
create card tPrintCardName
else
set the name of card tPageNo to tPrintCardName
end if
copy group tGrpName of card tPreviewCardName of stack "Preview" to card tPrintCardName of stack "Print"
put gFooter into field "fld_footer"
delete graphic "margin" of card tPrintCardName of stack "Print"
set the borderwidth of graphic "paper" to 0
add 1 to tPageNo
end repeat
end createPrintPages