BUG: Print and Page Setup in File Menu Does Not Work in EXE (177385)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a project named PrnTest.
  2. 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.
  3. In the Click event of the first command button, type the following code:
          USE <tablename> && Use a table that has MEMO a field.
          BROWSE
  4. In the Click event of the second command button, type the following code:
          RELEASE Thisform
          CLEAR EVENTS
  5. Create a program file (.prg) with the following code:
          DO FORM PrnForm
          READ EVENTS
  6. Add the form and the program file to the project and set the program file to main. Build the project into an executable (.exe).
  7. Run the .exe outside of Visual FoxPro.
  8. Click the Browse button to open a table to browse.
  9. Double-click the memo field to open the memo in an Edit window.
  10. 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.

Modification Type:MajorLast Reviewed:12/11/1999
Keywords:kbbug KB177385 kbAudDeveloper