Visual Foxpro

I use visual foxpro 6.0 in my app. I need to modify the print preview to remove or block
the print button on some reports in my program.
Sometimes the print button is needed.

Dan Landry
Who is Participating?
pcelbaConnect With a Mentor Commented:
Yes, the solution based on the resource file should work in all VFP versions. Of course, VFP 9 requires appropriate REPORTBEHAVIOR to implement it.
The Report Preview toolbar is defined in resource file (FOXUSER.DBF obviously). So if you set the appropriate resource file before the REPORT FORM command it will display the toolbar with or without the Print button.

The code and instructions to prepare appropriate resource files are published e.g. here:
Kalpesh ChhatralaSoftware ConsultantCommented:

I suggest FoxyPreview Report Viewer. you can easily customize button in this Report Viewer.
Just FYI, FoxyPreviewer does not work under VFP 6.
DanielBLandryAuthor Commented:
I found a solution that works with vp 6
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.