Microsoft KB Archive/177385

= BUG: Print and Page Setup in File Menu Does Not Work in EXE =

Article ID: 177385

Article Last Modified on 12/11/1999

-

APPLIES TO


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

-



This article was previously published under Q177385



SYMPTOMS
In Visual FoxPro versions 5.x, the Print and Page Setup menu options in the default system File menu do not work with a Visual FoxPro executable (.exe) file.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Create a project named PrnTest. Create a form named PrnForm and add two command buttons to the form. Change the caption of the first command button to Browse and change the caption of the second command button to Quit.  In the Click event of the first command button, type the following code: USE && Use a table that has MEMO a field. BROWSE   In the Click event of the second command button, type the following code: RELEASE Thisform CLEAR EVENTS   Create a program file (.prg) with the following code: DO FORM PrnForm READ EVENTS  Add the form and the program file to the project and set the program file to main. Build the project into an executable (.exe).</li> Run the .exe outside of Visual FoxPro.</li> Click the Browse button to open a table to browse.</li> Double-click the memo field to open the memo in an Edit window.</li> Select the Print option from the File menu.

NOTE: Once the Print option is selected, nothing happens. The same behavior occurs if you select the Page Setup option from the File menu.</li></ol>

Additional query words: print menu kbvfp500 kbvfp500a kbvfp600

Keywords: kbbug KB177385

-

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

© Microsoft Corporation. All rights reserved.