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

Last reviewed: February 6, 1995
Article ID: Q125608
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, version 2.6a

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 6, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.