printusingform
printusingform
DATABASE
,
FORM

The printusingform statement allows the current database to be printed using a different form than the one currently being displayed.

Parameters

This statement has two parameters:

database – is the name of the database file that contains the form to be printed. The database file must be open. If this parameter is empty (`""`) or omitted, the current database is assumed.

form – is the name of the form to be printed.

Description

The print and printonerecord statements normally print using whatever form is currently active. If you want to print using a different form, you must first open that window and then print. The printusingform statement is another way to print an alternate form. Using this statement, you can print using any form in any open database (the form does not have to be in an open window). Note: The printusingform statement may only be used when a form window is currently on top.

The procedure below will print My Report, even if another form is currently visible.

     printusingform "My Report"
     print dialog

The procedure below will print Standard Report #4 from the Reports database. Although the form is from the Reports database, the data will be from the current database. This usually only makes sense if the two databases have the same fields.

     printusingform "Reports","Standard Report #4"
     print dialog

See Also

- Automatic Mailing Label Construction -- creates a mailing label.
- Automatic Report Construction -- creates a tabular report with columns of data.
- info("pagecount") -- calculates the total number of pages that will be printed.
- info("pagenumber") -- returns the current report page number.
- info("printer") -- returns the current default printer.
- info("printers") -- returns a list of all available printers.
- info("printsequence") -- returns the record sequence number of the record being printed.
- pagesetup -- displays the page setup dialog.
- print -- prints the database.
- printonemultiple -- prints a form over and over again without advancing from record to record. Instead of advancing from record to record, a variable is incremented each time the form is printed. This statement is designed for printing calendars or thumbnails.
- printonerecord -- prints the the currently active record.
- printpdf -- prints the current database to a PDF file.
- printpreview -- previews what printing the current window will look like.
- printpreviewonerecord -- previews what printing the current record will look like.
- printtopdf -- prints the current database to a PDF file.
- Report Tile Object -- component for assembling a custom report.
- setreportcolumns -- allows a procedure to control the number of columns of a report, and the direction (across or down).

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0, but the DATABASE parameter is now optional.