Solved

Visual Foxpro

Posted on 2013-01-11
5
833 Views
Last Modified: 2013-01-26
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
0
Comment
Question by:DanielBLandry
  • 3
5 Comments
 
LVL 41

Expert Comment

by:pcelba
ID: 38767164
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: http://support.microsoft.com/kb/317466
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 38808929
Hi,

I suggest FoxyPreview Report Viewer. you can easily customize button in this Report Viewer.

http://foxypreviewer.codeplex.com/
0
 
LVL 41

Expert Comment

by:pcelba
ID: 38810437
Just FYI, FoxyPreviewer does not work under VFP 6.
0
 

Author Comment

by:DanielBLandry
ID: 38822068
I found a solution that works with vp 6
0
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
ID: 38822171
Yes, the solution based on the resource file should work in all VFP versions. Of course, VFP 9 requires appropriate REPORTBEHAVIOR to implement it.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question