Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Apr 2, 1999

Preview in VFP

Question:
I am going to give a preview of a report for a user, but a small window with a printer icon shows on the top. I don't want the report to be printed. How do I set the printer icon on the small window to disable?

Answer:
There is no way to turn off the printer icon in a preview. You might try:

1. Creating your own preview toolbar with no print button

2. Moving VFP's Print Preview toolbar off of the visible screen (VFP names the toolbar "Print Preview"):


    MOVE WINDOW "Print Preview" TO -1000,-1000
3. When "<" is pressed on your preview toolbar, use the MOUSE command to click on the "<" button on the "Print Preview" toolbar

    MOUSE CLICK AT 1,8 WINDOW "Print Preview"
4. Repeat #3 for all other buttons (except print) on the toolbar

For more reading, Christof Lange had an excellent article on reports in the October 1998 Foxpro Advisor magazine.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date