The CAPTURE and NPRINT utilities

Printing to a network printer

To print to a network printer from an application that is not designed to run on a network, follow these steps.

  1. Type

    CAPTURE P=printername TI=number LPT1

  2. Enter your application.

  3. Either open or create the files you want to print.

  4. Print your data using the print keys for your application.

    Your application sends the print job to the parallel ports. Before the print job arrives at the port, CAPTURE sets flags that redirects the job to the appropriate queue.

  5. When you have finished printing the files you need, exit the application.

    In most applications, printing begins immediately after you send the job.

Printing data without exiting an application

In most applications, printing begins immediately after you send the job.

Two seconds after the application last writes to the file, CAPTURE sends your print job to the print queue. A message appears across the bottom of your screen indicating that your job has been printed.

Printing data to different parallel ports

Suppose you often use CAPTURE to print from two different applications: AppA and AppB. AppA does not allow you to designate which parallel port to send print jobs to; therefore, its print jobs are sent to LPT1. However, AppB has a SETUP program that allows you to designate a parallel port.

Suppose also that AppA requires a different form than AppB and that you want to put form A (for AppA) in printer P_1 and form B (for AppB) in printer P_2.

Use the SETUP program in AppB to send your data through LPT2 to printer P_2. When you capture data from AppA, type

CAPTURE LPT1 P=P_1

When you capture data from AppB, type

CAPTURE LPT2 P=P_2

You can add other options to these commands.

Printing screen displays

To print information displayed on your screen, follow these steps.

  1. Before you access the screen you want to print, type

    CAPTURE P=printername TI=number LP T1

    You can include any of the CAPTURE options except SH (show).

  2. Access the screen you want to print.

  3. Press <Shift>+<Print Screen>.


    NOTE: DOS redirects print jobs to the port. If no printer is attached or port captured, your machine may hang. To prevent this, include the following line in the NET.CFG file on your workstation boot diskette:
    LOCAL PRINTERS = 0
    

Saving data from several applications or files to a single file

Suppose you want to move in and out of applications or files, saving data from each, and store all the data in one file called TEST on a network drive.

Use the CR (create) and NA (no autoendcap) options. Specifying no autoendcap allows you to move in and out of applications or files without prematurely closing the file you are creating.

To save data to a file to your current directory, type

CAPTURE CR=TEST NA TI=0

To save data to a file called TEST that is located in the REPORTS directory, type

CAPTURE CR=COUNT_SYS:SALES\REPORTS\TEST NA TI=0

To end the capture, type

CAPTURE EC

Saving data to a netware server you are not attached to

If you specify a NetWare server you are not attached to in your CAPTURE command, CAPTURE attaches you as user GUEST unless GUEST requires a password. In this case, you are prompted to enter both a username and a password before you continue with the capture.


© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999