Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing
Message
From
09/12/1997 09:02:49
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
 
 
To
09/12/1997 08:51:15
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00064625
Message ID:
00064631
Views:
30
>I am making a form with the bar tah vfp creates when you use
>th wizard of the forms, but when i push the button of printing a report all the records are printed, How can I make to print only one
>record at a time?
>thanks

Jorge,

You need to check the print button. open the form designer, open the form, highlight the command bar created by the wizard, while the mouse is on the bar right click and select edit. highlight the print command button, double click on it. This will bring up a code window for the click event for that command.

type in the following,

local lnrecno
lnrecno = recno()
report form "C:\IR\REPORTS\REWORK2.FRX" to printer noconsole for recno() = lnrecno

This will take the information on the screen and print it in a report. Where I have "C:\IR\REPORTS\REWORK2.FRX" put in the name of the report you want to print.

Merry Christmas, Brad.
He is there and He is not Silent.
Previous
Reply
Map
View

Click here to load this message in the networking platform