Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing the Print Button in the Report Preview Functio
Message
De
12/08/2002 17:31:20
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00688386
Message ID:
00688878
Vues:
23
>Thanks for the suggestion Sergey, it worked well.

Regards,
Carmen
It could be a separate program or a method of the form, whichever you prefer.
>
>>>Hi Sergey
>> Can the code for assigning the invoice number be stored in a method on the current form, or can it be stored with the report, or is it standalone code that is part of the project, the reason I'm asking is that the form from which the invoice report is printed has to know the invoice number to include it in the A/R entries which occur after the invoice has been printed.
>>
>>Regards,
>>Carmen
>>
>>Not directly but you can call your function that assigns invoce number from the Title band "On Entry".
* Report Title band On Entry.
>>>WEXISTS("Printing...") AND AssignInvoiceNumber()
>>>...
>>>Function AssignInvoiceNumber()
>>>* Generate/get invoice number
>>>...
>>>RETURN .T.
>>>...
"Printing..." is the name of the window displayed when report is sent to a printer. It shows report name, page printed and the cancel button. In English VFP it's always "Printing..." as in the code above.
>>>
>>>>Hello All
>>>> Does anyone know if it is possible, when in the "Report Preview" screen, to sense the button click of the printer icon? I have an invoice preview print routine that uses the "report form... preview" command. If the user clicks the print button then I will commit an invoice number to the print, but if the user merely previews without printing, I do not want to commit an invoice number. Do we have access to that control from within the form?
>>>>
>>>>Thanks in advance,
>>>>Carmen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform