Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement