open printing, close printing, for print spool job
Andre.Bisseret
Andre.Bisseret at inria.fr
Sun Dec 14 12:24:28 EST 2008
William,
I often use the following handler that allow printing all cards in a
stack :
(usually a special stack devoted to printing).
on imprimer
put the cardnames of stack "stackDImpression" into cardsToPrint
--answer printer
open printing WITH dialog
IF the result is "Cancel" THEN exit Imprimer
REPEAT FOR each line tCd in cardsToPrint
print tCd
END repeat
close printing
end imprimer
Hope this helps
best regards from Grenoble
André
Le 14 déc. 08 à 18:00, william humphrey a écrit :
> It's worse even. I'm trying to do
>
> on printSomeCards
>
> global cardsToPrint
>
> open printing with dialog
>
> if the result is "Cancel" then exit printSomeCards
>
> repeat with x = 1 to the number of lines of cardsToPrint
>
> print card (line x of cardsToPrint)
>
> end repeat
>
> close printing -- send group of cards to printer
>
> end printSomeCards
>
> But when I do it only the last card gets spooled and printed.
>
> So I do this:
>
> on printSomeCards
>
> global cardsToPrint
>
> open printing with dialog
>
> if the result is "Cancel" then exit printSomeCards
>
> repeat with x = 1 to the number of lines of cardsToPrint
>
> print card (line x of cardsToPrint)
>
> close printing
>
> end repeat
>
>
>
> end printSomeCards
>
>
> Then all the cars print but not as one nice batch (for example when
> you
> print to a PDF and you want a many page PDF.
>
>
> I'm using RunRev version 3.0 on Mac OS. Does anyone know how to get
> the
> print spool function to work?
>
>
> On Sun, Dec 14, 2008 at 12:32 PM, william humphrey <shoreagent at gmail.com
> >wrote:
>
>> Does anyone know how to make the print dialog know that you are
>> printing
>> more than one page so that it says Processing Page 1, Processing
>> Page 2 etc
>> instead of just hanging at Processing Page 1 until it's all done?
>
>
>
>
> --
> http://www.bluewatermaritime.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list