PRB: STYLE Clause Not Used with ? and ?? Commands

Last reviewed: April 29, 1996
Article ID: Q99635
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

If the SET PRINT FONT "<font name>",<point size> command is used to define the font in which FoxPro for Windows is to print, and the ? or ?? command with a STYLE clause is used to output text to the printer, the specified STYLE is not used in the printed output.

RESOLUTION

To work around this problem, add a FONT clause to the ? or ?? commands in the code example below. For example, the first ? command would be:

   ? "This should be bold" FONT "Arial",12 STYLE "B"

MORE INFORMATION

The following code will reproduce this problem:

   SET PRINTER FONT "Arial",12
   SET PRINTER ON

   ? "This should be bold" STYLE "B"
   ?? "This should be italic" STYLE "I"

   SET PRINTER OFF
   SET PRINTER TO


Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a
KBCategory: kbprg kbprb
KBSubcategory: FxprintFont


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.