Microsoft KB Archive/99635

{| = PRB: STYLE Clause Not Used with ? and ?? Commands =
 * width="100%"|

ID: Q99635

2.50 2.50a 3.00 WINDOWS kbprg kbprb

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 &quot; &quot;, 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:

? &quot;This should be bold&quot; FONT &quot;Arial&quot;,12 STYLE &quot;B&quot;

MORE INFORMATION
The following code will reproduce this problem:

SET PRINTER FONT &quot;Arial&quot;,12 SET PRINTER ON

? &quot;This should be bold&quot; STYLE &quot;B&quot; ?? &quot;This should be italic&quot; STYLE &quot;I&quot;

SET PRINTER OFF SET PRINTER TO Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a KBCategory: kbprg kbprb KBSubcategory: FxprintFont Keywords         : FxprintFont Version          : 2.50 2.50a 3.00 Platform         : WINDOWS
 * }