makpak
To understand it, keep in mind that the current toolbar status - that is, the visibility and location of the toolbars, and whether they are docked or floating - is stored in the VFP resource file. The resource file is in fact two files. By default, they are named FOXUSER.DBF and FOXUSER.FPT and can be found in the directory from which you launched the application.
With that in mind, here are the steps needed to ensure that the report designer toolbars are always visible at run-time:
[ol][li]Launch Visual FoxPro. Close any toolbars that you don't want the user to see at run-time (such as the standard toolbar). [/li]
[li]Open the report designer. Go to View/Toolbars and manually open the two main report designer toolbars (Report Designer and Report Controls). Move these to a suitable location on the screen. If you wish, you can also open the Layout and Color Palette toolbars at this point, but this is not essential as the user will be able to open these from the Report Designer toolbar. [/li]
[li]Using Windows Explorer, visit the directory from which you launched VFP. Look for FOXUSER.DBF and FOXUSER.FPT, and make them read-only. (To make a file read-only, right-click on it, select Properties, and enable the Read-Only checkbox.) [/li]
[li]Quit the report designer and close VFP. [/li]
[li]Copy the two Foxuser files to the directory on the user's system from which your application will be launched. [/li]
[li]Launch the application on the user's system. When you open the report designer from within the application, you should see the toolbars just as you left them. [/li][/ol]
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first