Compressed Printing in Reflection for Windows

  • 7021601
  • 14-Jul-1999
  • 01-Apr-2018

Environment

Reflection for HP version 13.0 through 14.x
Reflection for UNIX and OpenVMS version 13.0 through 14.x
Reflection for ReGIS Graphics version 13.0 through 14.x

Situation

This technical note explains how to print compressed output in Reflection for Windows.

Resolution

Configuring Reflection for Windows to Print in Compressed Mode

Follow the steps below to print in compressed mode:

  1. On the File menu, click Print Setup.
  2. In the Print Setup dialog box, select Page Options.
  3. Under Column Dimensions, change the columns per row to 132, or enter the number you want.
  4. Change the number of rows per page, if necessary.
  5. Click OK.
  6. Test printing from Reflection.

Creating Buttons for Compressed Printing

You can also add buttons that produce compressed printing to the Toolbar. The easiest way to create a button is to record a script or macro and attach it to a button.

  1. Click Start Recording on the Macro menu.
  2. On the File menu, click Print Setup, and then change the number of columns and rows as needed.
  3. Click OK to accept the changes.
  4. Click Stop Recording on either the Script or Macro menu.
  5. In the Stop Recording dialog box, name the script or macro and click Create a Button.
  6. On the File menu, click Save.

Go through the process above twice, once to create a button to switch to compressed printing and once to create a button to return to 80-column printing. The printer will continue in compressed mode until it receives a reset escape sequence, or until you press the 80-column printing button.

Toggling Between Normal and Compressed Printing

You can also use Reflection's Macro Editor to create a macro that will toggle between normal and compressed printing.

Sample VBA Macro

The following VBA macro allows you to toggle between 80 and 132 columns:

Sub Compress()

    On Error GoTo ErrorHandler

    With Session
        If .PrinterColumns = 132 Then
            .PrinterColumns = 80
        Else
            .PrinterColumns = 132
        End If
         
        If .PrinterRows = 48 Then
            .PrinterRows = 60
        Else
            .PrinterRows = 48
        End If
    Exit Sub

ErrorHandler:
    .MsgBox Err.Description, vbExclamation + vbOKOnly

    End With
 
  End Sub

Attaching a Button to Your Macro

To attach a Toolbar button to the macro you recorded, follow the steps below.

  1. On the Setup menu, click Toolbar.
  2. Click Customize.
  3. Click New Button.
  4. Add label text, picture, and help text as needed.
  5. In the Action area, select Script or Macro (depending on what version of Reflection you are using).
  6. Enter the file name.
  7. Click OK.
  8. Test the toolbar button to make sure it works properly.
  9. On the File menu, click Save to save the settings file.

Defining Keystrokes for Your Script or Macro

To define a keystroke for the script or macro you recorded, follow the steps below.

  1. On the Setup menu, click Keyboard Map.
  2. Click a key on the Upper (PC) Keyboard.
  3. Under Action, select Macro.
  4. Enter the name of the script or macro.
  5. Click Map, and then click OK.
  6. Test the keystroke to make sure it works properly.
  7. On the File menu, click Save to save the settings file.

Troubleshooting

This section contains suggestions for troubleshooting problems with compressed printing. Resolving a problem may require one or a combination of these suggestions.

Fonts Are Too Small

If your printout is compressed but the fonts are too small, try reducing the margin settings and row settings.

Can Not Access Page Setup or Page Layout

Page Setup or Page Layout are not accessible if the Bypass Windows Print Driver check box in the Print Setup dialog box is selected. Bypass Windows Print Driver enables the host application to send printer control escape sequences directly to the printer. If Bypass Windows Print Driver is not selected and the host sends printer control escape sequences, printer output may be garbled, may contain odd characters, or may not appear at all.

If your host does not need to send escape sequences, and you want access to the Page Layout features, follow the steps below.

  1. On the File Menu, click Print Setup.
  2. Clear the Bypass Windows Printer Driver check box.

Contacting Technical Support

If you still have questions about printing, please contact your Attachmate technical support center. Before contacting Attachmate technical support, please have the following:

  • A paper copy of the failed print job from another source (if possible).
  • The model of the printer.
  • The type of PC-to-printer connection (for example, COM port or LPT port).
  • The Reflection product and version.
  • An event trace. To perform a trace, follow the steps in KB 7021622.

Additional Information

Legacy KB ID

This document was originally published as Attachmate Technical Note 1103.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.