Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing one record to a form
Message
De
04/09/1997 17:58:12
 
 
À
04/09/1997 17:38:48
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00048568
Message ID:
00048603
Vues:
23
>>>>>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

Brad,
Modify the report form command from above to the following:

From : REPORT FORM (m.cRepName) PREVIEW NOWAIT

TO: REPORT FORM (m.cRepName) TO PRINT NOCONSOLE FOR NEXT 1

Thanx!

Tony Miller
PTI
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform