Microsoft KB Archive/101004

{| = FIX: @ ... SAY BITMAP Is Not Placed Correctly When Printed =
 * width="100%"|

ID: Q101004

2.50 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.5

SYMPTOMS
The @ ... SAY BITMAP command can be used to print the bitmap specified by if the command SET DEVICE TO PRINT is used. However, when this command is used, the bitmap will not be placed correctly within the printed page. This behavior occurs even if the optional parameters ISOMETRIC or STRETCH are used. For example, the following commands should place the file FOX.BMP in the FOXPROW directory at row 10 column 50 on the printed page:

SET DEVICE TO PRINT SET PRINT ON  @ 10,50 SAY "C:\FOXPROW\FOX.BMP" BITMAP SET DEVICE TO SCREEN SET PRINT TO However, the output from this command does not place FOX.BMP at row 10, column 50. Instead, this bitmap is placed almost against the left edge of the paper. The distance from the left edge of the paper varies depending on the column value used, but it is never farther than three quarters of an inch from this edge.

STATUS
Microsoft has confirmed this to be a problem in FoxPro version 2.5 for Windows. This problem was corrected in FoxPro version 2.5a for Windows.

MORE INFORMATION
The @ ... SAY BITMAP command is used to display .BMP files in FoxPro for Windows. If the SET DEVICE TO SCREEN command is issued, the bitmap appears in the main FoxPro window or a user-defined window. If the SET DEVICE TO PRINT command is issued, the bitmap will be sent to the printer.

Additional reference words: FoxWin 2.50 @..SAY BITMAP SET DEVICE PRINT buglist2.50 fixlist2.50a KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: FxprgGeneral Solution Type : kbfix
 * }