Microsoft KB Archive/156866

= FIX: The REPORT FORM command returns the incorrect font size in Windows 95 =

Article ID: 156866

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q156866



SYMPTOMS
When printing a report using Windows 95 only and the REPORT FORM TO PRINTER PROMPT command, the printed output is reduced down to only one quarter of the page. This makes the printout very small and difficult to read. This problem is sometimes reversed and the output is 200-400 percent larger than expected. This problem has been corrected in Microsoft Visual FoxPro version 5.0a.



CAUSE
There are several scenarios that produce the bug in Windows 95 only. This is not a problem in Windows NT. The anomaly appears only if printer drivers are installed in a certain way or if the printer driver cannot pass the correct information through the printer dialog box.

It also seems to make a difference if either one of the drivers has been installed, and deleted, and reinstalled. Depending on which has been installed makes the other exhibit the bad behavior.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been corrected in Microsoft Visual FoxPro version 5.0a.

There have been isolated reports of this problem still happening in Visual FoxPro 5.0a build 402. For best results, upgrade to Visual Studio 97 Service Pack 3. This upgrades the Visual FoxPro 5.0a build to 415. Be sure to upgrade the Visual FoxPro run-time support libraries also. Installing the service pack should do this. To check the build, get the properties on the VFP.exe and VFP5.dll for the development version. Check the run-time files in the Windows\System or Windows\System32 directories. They are VFP500.dll and VFP5ENU.dll.



Steps to Reproduce Behavior
Depending on how you installed the drivers, using printer drivers for an HP LaserJet IIISI and an HP LaserJet 4SI may produce the problem. The problem can occur under different circumstances, but only one case seems to always produce the problem.

All drivers are installed by double-clicking the Printers icon in the Control Panel while Visual FoxPro 5.0 is not running.

Steps to Reproduce Behavior (on an HP printer)
 Uninstall all Printer drivers. (This does not really delete the drivers.) Reboot. (This is important.) Install the 4SI driver. (If you have had this previously installed you are prompted that the Drivers exists and do you want to overwrite them. Choose YES if you are prompted.) Restart. (This is important.) Create and run a simple one line report named "Test.frx" that uses one or two fields from \Samples\Tastrade\Data\Customer.dbf

To run the report, issue the following command:

REPORT FORM test TO PRINTER PROMPT

This report should appear fine. (If you previously had the driver installed, you may get the problem now.) Go back to Printers on the Control Panel and install the HP IIISI. When asked "Do you want to overwrite the existing drivers?" click Yes.

Note that in all cases you are asked if you want to overwrite files. Just make sure you install the IIISI after you have installed the 4SI.</li> Reboot.</li> Run the same report on both printers.</li></ol>

The font size most likely is either much larger or much smaller than expected on the IIISI. The font size is more often than not much larger than expected. This sometimes occurs on the 4SI.

Additional query words: tiny postage size enlarged credit-card small reduced increase

Keywords: kbbug kbfix kbvfp500afix kbprint kb3rdparty KB156866

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.