dcsimg
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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Feb 22, 2000

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Printing One Page of a Report

Question:
How can I give the user the option to print only one page in a Visual FoxPro report?

Answer:
The REPORT FORM command has a RANGE parameter. Here is information from the help file:

    RANGE nStartPage [, nEndPage]
    Specifies a range of pages to print. nStartPage specifies the first page printed; nEndPage specifies the last page printed. If nEndPage is omitted, the last page printed defaults to 9,999.
For example, to print pages 3-5 of a report called myreport.frx, you could execute the following:
REPORT FORM MYREPORT RANGE 3,5 TO PRINT
To print one page (for example, page 3) you could execute the following:
REPORT FORM MYREPORT RANGE 3,3 TO PRINT
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