PRB: Printer Prints Portion of Page Then Ejects to New Page

ID: Q125608

The information in this article applies to:

SYMPTOMS

When printing labels using the HP Laserjet III driver in Microsoft FoxPro for MS-DOS if you specify 16.7 characters per inch with 8 lines per inch, the printer prints the first 75% of the page of labels then ejects to the next sheet.

CAUSE

The Label Writer does not provide a way to specify the page length. The printer acts on the default page length value of 66 lines per inch and prints labels on the first 75 percent of the page before ejecting to a new page. This is not the case with a standard report, where the Page Layout/Printer Driver Setup dialog box presents a page length selection list box that allowing you to specify the length of the page in lines.

WORKAROUND

From the File menu, choose Print Setup. Define a print driver using the HP Laserjet III with 16.7 CPI font, 8 LPI, and a page length of 11 inches. Set this as the default print driver.

Use the FoxPro Label Writer to define and place fields on a label form. From the Label pad of the Screen Builder menu bar, select Environment. Save the environment and check the box beside "Printer Driver." This brings up a Printer Driver Setup pick list. Be sure the appropriate driver is selected, then click "Set."

Save the label definition with a name such as MYLABEL.LBX.

Run the labels within a "PRINTJOB - ENDPRINTJOB" code sequence similar to this:

  PRINTJOB
     _PLENGTH = 88
     LABEL FORM Mylabel TO PRINTER PDSETUP ENVIRONMENT
  ENDPRINTJOB

  SET PRINTER TO
  SET PRINTER TO

STATUS

This behavior is by design.

Additional reference words: FoxDos 2.60a label compressed font page length KBCategory: kbprint kbprb KBSubcategory: FxprintDriver

Last Reviewed: February 6, 1995