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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Preview Toolbar

Status
Not open for further replies.

mjprust

Programmer
May 10, 2007
9
GB
Hi

I have a system running under VFP8 and on 1 of about 300 sites the Print Preview Toolbar has suddenly disappeared for some reports.

If anyone can help it would be really appreciated.

Regards Malcolm
 
Hi Malcom,

Probably, the user is closing the toolbar (easy to do my accident), and VFP is remembering that fact, and so not opening it next time.

One way to prevent that is to not use a resource file. The resource file is where VFP stores this kind of information. If you don't have such a file, VFP will revert to the default next time, which is for the toolbar to be visible.

You can achieve that by putting RESOURCE = OFF in a Config.FPW file.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks Mike

I have been away so have not been able to respond earlier.

I will have to log on to the client's site and have a look.

Regards

Malcolm
 
Mike,
Further to not using a resource-file.
Would there be a (hardcoded-way?)to keep the print preview toolbar docked?
-Bart
 
Hi Bart,

Well, if the toolbar is docked when you distribute the application, and if you distribute the resource file but make it read-only, any changes the user makes in the dock status (or anything else) will not be saved. So the report should always come up with the toolbar docked.

If you don't want to make the whole resource file read-only, you can make that setting for individual records - just set the relevant ReadOnly field to .T.

Another possibility might be to experiment with something like MOUSE DBLCLICK WINDOW "Print Preview" immediately before you do the preview.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top