Error getting tags :
error 404Error getting tags :
error 404 open printing | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
open printing
Basics
Expander triangle
Type
Command
Syntax

open printing [with dialog [as sheet]]

Introduced
1.0
Changed
2.0
Environment
Desktop,Web
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Printing
Summary
Begins a batch print job, which allows more than one card to be printed on a page.
Examples

open printing
open printing with dialog
open printing with dialog as sheet

Additional Comments
Expander triangle

Use the open printing command to print multiple cards.

Comments:

Normally, the print command prints each card on a separate page. If you use the open printing command before issuing the print commands for the cards you want to print, the printing is delayed until all the cards have been specified. This causes the cards to be printed as one batch.

The open printing with dialog form opens the print dialog box on Mac OS systems. On Unix or Windows systems, this form acts like the open printing form, and no dialog box appears. If the as sheet form is used, the dialog box appears as a sheet on OS X systems.

If the open printing with dialog form is used, and the user cancels the print dialog box, the result is set to "Cancel".

The following handler prints cards that have been collected in a global variable:

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

Changes to Revolution:

The open printing with dialog as sheet form was introduced in version 2.0.

Important! Any printing options, such as setting print spacing and margins, must be set before the open printing statement. Any options which are set after it will be ignored.

User Comments
Expander triangle