Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

open report printing

open report printing
open report printing with dialog
open report printing ¬
with template text

where text is the name of a report template in the current stack.

The open report printing command begins the process of printing a stack (or part of a stack) as a report. It uses the current settings from the Print Report dialog box. You must use the close printing command to end a job begun with open report printing.

If you specify the with dialog option, HyperCard displays the Print Report dialog box and the user can choose new settings. If you specify the with template option, HyperCard prints the stack with the named report template.

HyperCard sets the function the result to Cancel if the user clicks Cancel in the dialog box, to no such report template if you specify a template that doesn’t exist, or to empty in all other cases.

Examples

-- An example script for printing mailing labels, assuming a
-- report template Mailing Labels already exists:
on printLabels
open report printing with template "Mailing Labels" -- choose template
print all cards -- specify what cards to print
close printing -- generate the report and print it
end printLabels

Related Topics

Placeholders

text

An expression that evaluates to a text string.

A text expression can be a literal string surrounded by quotation marks or the value of a container.

For example:

"Hello"
"The sum is:" && 3
card field 1
line 1 of bg fld "Address"
the Message box
the selection
myVar -- a variable

See also: background, bkgnd, button, card, field, menu, menuItem, and stack

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View