



    ________________________________________________________________________
                                               Chapter 10: Printing   169
    ________________________________________________________________________



    CHAPTER 10: PRINTING

    This chapter explains how to use HyperPAD to print information stored in
    your pads. We'll begin with instructions on how to set up HyperPAD to
    work with your printer. Next, we'll examine the Print command in depth
    and show you how to print labels, reports, and reproductions of screens.
    Finally, we'll briefly describe how to accomplish more complex printing
    tasks with the PADtalk language.

    This chapter describes the Printer Setup, Page Setup, and Print commands
    on the File menu and offers suggestions about the best way to use these
    commands to print information.

    This chapter will not cover printing capabilities available from the
    command line buttons in pads like Daily Planner or Phone. To make use of
    special printing buttons in pads, please refer to the chapter that
    describes the individual pad or press F1 for context-sensitive help.
    HyperPAD offers you several printing options. If you're using HyperPAD
    to design screen layouts or as a simple database manager, printing a
    reproduction of the screen may be sufficient. If you're a heavy user of
    HyperPAD's database-management features, it's more likely that you'll
    print labels, column reports, and row reports from the data stored in
    your pads.



    ________________________________________________________________________
                                               Chapter 10: Printing   170
    ________________________________________________________________________


    SETTING UP HYPERPAD TO WORK WITH YOUR PRINTER

    Before you can print, you must set up HyperPAD to work with your printer
    and with the pages you'll be using. This section describes the Printer
    Setup and Page Setup commands, each of which must be used before you
    print for the first time.

    Once you set your printer and page options, HyperPAD saves those options
    and automatically uses them the next time you print. So unless you
    change printers or change forms, you'll only have to perform the
    following procedures once.


    USING THE PRINTER SETUP COMMAND

    HyperPAD communicates with your printer by means of a special computer
    file called a printer driver. The Printer Setup command allows you to
    select a printer driver that matches your printer.


    To use the Printer Setup command:

    1.  Select the Printer Setup command from the File menu (ALT+F, U).

    The Printer Setup dialog box, shown here, appears superimposed on the
    current page.

 Ŀ
                                                                        
  **** The Printed Documentation has a picture or screen shot here **** 
                                                                        
 
    



    ________________________________________________________________________
                                               Chapter 10: Printing   171
    ________________________________________________________________________


    2.  If your particular printer isn't specified as the Current printer,
    select the name of your printer from the Available printers list box.

    If your printer doesn't appear on the list, choose either the Generic
    Line Printer or, if your printer is capable of emulating an Epson
    printer, the Epson FX/MX/LQ printer driver.

    3.  TAB to the Print to group of option buttons and, if necessary,
    highlight your choice of printer ports.

    (A printer port is the interface that your PC uses to send data to a
    printer. You may be using a parallel printer, in which case your printer
    port is either LPT1 or LPT2, or a serial printer, in which case you
    should select COM1 or COM2.)

    4.  TAB to <<Ok>> and press ENTER.


    PRINTING TO A DOS FILE

    You might choose to print to a file if:

        0  You want to view your information before printing it

        0  You want to load the report into a word processor for formatting

        0  You want to print the report at a later time

    To print to a file, repeat the procedure above, with one exception.
    Select the File option button in the Print to column, then enter a valid
    DOS filename into the File text box.

    If you enter the name of an existing file, a dialog box will appear and
    ask if you want to replace the existing file. Select <<Ok>> to overwrite
    the existing file or <Cancel> to return to the Printer Setup dialog box
    and enter a different name.


    USING THE PAGE SETUP COMMAND

    When you've selected the desired Printer Setup options, move on to the
    Page Setup command.

    HyperPAD allows you to print on:

        0  Letter-size (8.5" x 11") paper

        0  Legal-size (8.5" by 14") paper

        0  Label sheets with side-by-side blank labels

        0  Custom forms of any size that fits into your printer



    ________________________________________________________________________
                                               Chapter 10: Printing   172
    ________________________________________________________________________


    Use the Page Setup command to define the page in terms of its
    orientation, form, and method of feeding paper into the printer. Once
    you complete the procedure below, you'll be ready to use the Print
    command to tell HyperPAD exactly what to print and how to print it.


    To set up HyperPAD to work with the forms in your printer:

    1.  Select Page Setup from the File menu (ALT+F, T).

    The Page Setup dialog box, shown here, appears.

 Ŀ
                                                                        
  **** The Printed Documentation has a picture or screen shot here **** 
                                                                        
 
    

    2.  Select Portrait or Landscape orientation. (Choose Portrait, unless
    you want to print sideways.)

    3.  Select the Compress option button only if you want to print using
    your printer's compressed character set.

    4.  Use the Form column to select the form size that matches the forms
    in your printer.

    If your form is not letter- or legal-size paper, select the Custom
    option, then type the horizontal and vertical dimensions of the form, in
    inches, into the Width and Height text boxes.

    5.  Indicate whether the paper will be continuously or manually fed.

    Unless you'll be using letterhead or another form type that you want to
    insert by hand, select the Continuous option.

    6.  When all settings are correct, select <<Ok>>.



    ________________________________________________________________________
                                               Chapter 10: Printing   173
    ________________________________________________________________________


    PRINTING INFORMATION WITH THE PRINT COMMAND

    Once you set the printer and page options, using the Printer Setup and
    Page Setup commands, move on to the heart of HyperPAD's printing
    capabilities: the Print command.

    When you select the Print command from the File menu, HyperPAD displays
    the Print dialog box. This dialog box offers four options: Pages,
    Labels, Columns, or Rows. The remainder of this section will describe
    each option in the order in which it appears.


    PRINTING PAGES

    The most basic type of printing available in HyperPAD is page printing.
    Choose this option if you want to reproduce information as it appears on
    the screen.


    To print a page:

    1.  Select Print from the File menu (ALT+F, P).

    2.  Select the Pages option from the Print dialog box.

    The Print Pages dialog box, as shown here, appears superimposed on the
    current page.

 Ŀ
                                                                        
  **** The Printed Documentation has a picture or screen shot here **** 
                                                                        
 
    



    ________________________________________________________________________
                                               Chapter 10: Printing   174
    ________________________________________________________________________


    3.  If you want to include a header on each page, enter text into the
    Header text box. You can also enter text for the footer in this dialog
    box.

    For more information about controlling the formatting of headers and
    footers, see the subsection called "Printer Control Codes" later in this
    section.

    4.  TAB to the Pages option and select the All option to print all the
    pages in the pad or the From option to print a range of pages.

    If you want to print only a portion of the pad, enter the range of pages
    into the text boxes that appear to the right of the From option.

    5.  TAB to the As is option.

    If the As is option is on, HyperPAD will print a page exactly as it's
    displayed, including such HyperPAD elements as open menus, the status
    bar, and the message box.

    6.  TAB to the options that control the margins and enter your settings,
    in inches.

    7.  TAB to the Pages per printed page option and indicate how many pages
    from a pad should be printed on a single form.

    If you're printing from a 25-line pad, the default size for pads, two
    pages from your pad will fit on each printed page.

    8.  Select <<Ok>> to begin printing.



    ________________________________________________________________________
                                               Chapter 10: Printing   175
    ________________________________________________________________________


    PRINTING LABELS

    HyperPAD's label-printing option is useful with the Phone pad system or
    a similar information manager.

    Note: Label printing is designed to be used from within database pads
    such as Phone, Daily Planner, and Index Cards. If your pad does not have
    background fields, you cannot print labels from it.


    To print labels from a database pad:

    1.  Select Print from the File menu (ALT+F, P).

    2.  Select the Labels option from the Print dialog box.

    The Print Labels dialog box, as shown here, appears.

 Ŀ
                                                                        
  **** The Printed Documentation has a picture or screen shot here **** 
                                                                        
 
    

    3.  Choose the fields to be included on the label.

    HyperPAD lists all background fields for the current page. To exclude a
    field from the label, use the up and down arrow keys to highlight the
    row on which the field name appears, then type N to tell HyperPAD not to
    print that field.

    All selected fields will be included on the label.

    4.  TAB to the settings for number of labels, margins, and space between
    labels on the label sheet, and make your selections.



    ________________________________________________________________________
                                               Chapter 10: Printing   176
    ________________________________________________________________________


    Refer to the accompanying table for a description of each option in the
    Print Labels dialog box.

    Option:               Description:
    ----------------------------------------------------------------------
    Labels Across         Number of labels across the label sheet

    Labels Down           Number of labels down on the label sheet

    Top Margin            Distance between top of label sheet and first
                          label

    Bottom Margin         Distance between last label and the bottom of the
                          label sheet

    Space Between Labels  Space in colums between labels

    Label Margins         Margins for each individual label

    5.  After making your selections, select <<Ok>> to begin printing.


    Notes:  If you activate more fields than can fit on a label, HyperPAD
    will exclude as many fields as necessary, beginning at the bottom of the
    Background field list.

    By default, HyperPAD selects all the background fields for printing.
    Deactivate any unwanted fields before printing labels.

    HyperPAD remembers the options you selected. The next time you print
    labels, these settings will be the default values.


    PRINTING COLUMN AND ROW REPORTS

    At this point, you've learned how to print information from your pads as
    pages and labels. You can also print reports, oriented by row or by
    column, from pads that contain background fields.


    PRINTING A COLUMN REPORT

    Column reports are useful for information structured in a limited set of
    categories. For example, the Phone pad uses name, address, and phone
    number as three of the categories of information you can add and edit.
    You can easily create a table with three columns of information,
    arranged to make it simple to scan and find the information pertaining
    to a given individual listed in your Phone pad.



    ________________________________________________________________________
                                               Chapter 10: Printing   177
    ________________________________________________________________________


    To print a column report:

    1.  Select Print from the File menu (ALT+F, P).

    2.  Select Columns from the Print dialog box.

    The Print Column Report dialog box, shown here, appears.

 Ŀ
                                                                        
  **** The Printed Documentation has a picture or screen shot here **** 
                                                                        
 
    

    3.  TAB to the Width column to adjust the width of any column whose
    default value you want to change.

    4.  TAB into the Print column and deactivate any fields that you don't
    want to include.

    Type Y to activate a field, N to deactivate it.

    5.  TAB into the Spacing control and select Single for a single-spaced
    report, Double for double-spaced.

    6.  Activate the Field option if you want field names to appear on top
    of the columns. Activate the Page option if you want the page name to
    appear in a column at the left of the report.

    7.  Enter any information you want to appear in the header and footer
    areas of the report.

    8.  Select top, bottom, left, and right margins

    9.  Select <<Ok>> to start printing.



    ________________________________________________________________________
                                               Chapter 10: Printing   178
    ________________________________________________________________________


    Notes:  As with labels and row reports, you can only print column
    reports from pads with background fields.

    In the report, each page from the pad will start on a separate line. A
    blank space will be inserted after the information from each page is
    printed in columns.

    If the content of a field does not fit into its respective column,
    HyperPAD will word-wrap the information onto the next line of the
    report.


    PRINTING A ROW REPORT

    While column reports are useful for printing information from a small
    number of fields in a pad, you will choose row reports if you want to
    print information from a large number of background fields in a pad.

    HyperPAD prints row reports by stacking field information on top of
    other field information, with at least one row given to each field.


    To print a row report:

    1.  Select Print from the File menu (ALT+F, P).

    2.  Select Rows from the Print dialog box.

    The Print Row Report dialog box, shown here, appears superimposed on the
    current page.

 Ŀ
                                                                        
  **** The Printed Documentation has a picture or screen shot here **** 
                                                                        
 
    



    ________________________________________________________________________
                                               Chapter 10: Printing   179
    ________________________________________________________________________


    3.  Follow the actions described in steps 4-8 of the procedure for
    printing column reports shown above.

    4.  Select <<Ok>> to begin printing.

    Note:  Although the Width column is displayed, since there are no
    columns in a row report, HyperPAD does not permit you to enter any
    values into this column.


    PRINTER CONTROL CODES

    The following table describes some special printer control codes that
    you can add to the Header and Footer text boxes of the Print Page, Print
    Column Report, and Print Row Report dialog boxes.

    To:                                                Add this Code:
    -------------------------------------------------------------------
    Print the text that follows flush left             &L

    Print the text that follows flush right            &R

    Center the text that follows                       &C

    Print the page number of the printed report        &P

    Print the date in a format such as: 5/3/90         &D

    Print the date on each printed page in a format    &E
    such as: Thursday, May 3, 1990

    Print the time                                     &T

    Print the pad name                                 &S

    Print the page name                                &A

    Print the HyperPAD page number                     &N



    ________________________________________________________________________
                                               Chapter 10: Printing   180
    ________________________________________________________________________


    OTHER PRINTING OPTIONS

    Although most users will be satisfied with the printing commands
    described above, you may need to produce a specialized report that
    requires something more.

    There are two options that you should consider if you need a custom
    report:

        0  First, if you are comfortable using the PADtalk scripting
           language, look into the print command, as well as the
           printerDevice and printer properties. PADtalk can perform very
           sophisticated reporting.

        0  Second, consider exporting information from pads to the .DBF
           or ASCII format and then using a program such as R&R Relational
           Report for more sophisticated report writing.


    CONCLUSION

    After finishing this chapter, you should know how to use HyperPAD to
    print pad information in several different formats. You should be able
    to use the Print Pages command to print a range of pages. Also, you
    should be able to print labels from a pad containing background fields
    or print row and column reports from pads.

    Finally, you should be aware that the PADtalk scripting language
    contains several elements for controlling and sending information to
    printers.

    This is the end of Part 1 of the HyperPAD User's Guide. In Part 2,
    "Designing with HyperPAD," you'll take the next step as a HyperPAD user
    by learning to design your own HyperPAD applications.
