Rant Re Rev Documentation

Chipp Walters chipp at chipp.com
Mon Jul 25 18:36:33 EDT 2005


Hi Jonathan,

I'm copying this to the list as well, as some there may be interested.

Are you on Mac or PC? I did this for both Mac and PC, and it's different 
for each. On the PC, if you put in the msg:

answer printer

you will see 'page ranges' are not selectable.

I then create an offscreen stack, and populate it with a card for each 
page to print. I then (optionally) capture the image of each card to a 
temp file, and show them in a print preview. From there it's a simple 
matter of marking the cards to print, and printing them one at a time. 
In the print preview window, I can also choose the number of copies, the 
page range, etc...store them in custom props and then:

repeat for each line L in the uPagesToPrint
     go cd x
     --> tW & tH IS THE WIDTH AND HEIGHT TO PRINT IN PIXELS
     --> CHANGES DEPENDING ON PRINT LAYOUT
     print card into 0,0,tW,tH
     --> THIS PRINTS A BREAK SO THAT THE NEXT PAGE CAN PRINT
     print break
end repeat

hope that helps.

Chipp

Lynch, Jonathan wrote:
> I have been stymied on part of this,
> 
> How do you disable the page ranges? Do you also disable the collate
> option?
> 
> If you print multiple copies, does it have to re-send and re-calculate
> the print job for every copy?
> 
> I would really like to create a single step print dialog box that works
> perfectly, but it looks like that would require an external, or using
> cScript - which would be a big pain, and would not work cross-platform.




More information about the use-livecode mailing list