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
Feb 22, 2000

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