Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make my Report Tool Bars to appear ?

Reports

How to make my Report Tool Bars to appear ?

by  ramani  Posted    (Edited  )
**********************************************************
** How to make REPORTS TOOLBAR appear while PrintPreview.
**********************************************************
** by Subramanian.G (ramani)
** FoxAcc Software
** ramani_g@yahoo.com
**********************************************************

1. Launch Visual FoxPro.

2. Close any toolbars that you don't want the user to see at run-time (such as the standard toolbar).

3. Open the report designer.

4. Go to View/Toolbars and manually open the two main report designer toolbars (Report Designer and Report Controls).

5. Move these to a suitable location on the screen.Or dock them as you want it to appear, if that is applicable.

6. 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.

7. Now .. 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.)

8. Quit the report designer and close VFP.

9. Copy the two Foxuser files to the directory on the user's system from which your application will be launched.

You can also copy the FoxUser.* to Freport.* or such suitable name. Then at the appropriate place in your application, (may be at the click event of your Print button) issue the command,just before the REPORT FORM .. syntax....issue the code..
SET RESOURCE TO Freport
and then after the printing is over, set it back to default or watever way you control with the code.. ST RESOURCE TO .. command.
**********************************************************
** Ramani (Subramanian.G), FoxAcc, ramani_g@yahoo.com
** EOF
**********************************************************
Evaluate this to make others know how useful is this :-)
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top