Solved

Visual Foxpro

Posted on 2013-01-11
5
824 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
the command is "append from" in VF 9.0 6 54
Memo window in FoxPro 2 523
VFP error in production environment but not in development 7 110
Fox pro conversion 3 48
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…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now