Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing one record to a form
Message
From
04/09/1997 17:38:48
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00048568
Message ID:
00048602
Views:
25
>>>>I have created a form and have the buttons on it that are from the wizard library. When I press print the form that comes up is correct, but it tries to print every record. How do I set it to only print the current record on the screen to the form?
>>>
>>>Do you need to copy the record do you want to a temporary file and use the same alias name for the report does not confuse.
>>>
>>>Gerardo
>>
>>Gerardo,
>>I am kind of new at most of this and may not understand your question. Do I need to create a temporary file and print from it? If so, how do I do that?
>>
>>Thanks, Brad.
>
>The code is in the txtbtns class in VFP\WIZARDS\WIZSTYLE.VCX. Make a copy of this class in your own class library and edit as you see fit. The txtbtns class and its many methods do just about everything on a form built with the wizard. It's not real flexible. In your case, the cmdPrint.Click has the line REPORT FORM (m.cRepName) PREVIEW NOWAIT which you could edit based on conditions in your form.


Thank you for responding. But I still am not sure what to do.
I understand that it is a class and that it could be edited, however what command do I give to only print the current record on the screen to the report?
We have a screen that has info from a single database. The info on the screen fills a one page report that gets distributed to other offices. All I need to do is print the information from the screen to a single page. What is happening is that the whole database is being printed, every record, not just the one on the screen. My question is, how do I limit automatically the printing to the current record on the screen?

Thanks, Brad
He is there and He is not Silent.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform