Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to run a method from an invisible form
Hi.
I have a form which allows Invoices for customers to be printed.
There is a button on this, which selects all Invoices waiting to be printed, does some formatting,copies data to a temporary file, and then prints the Invoice. (I run this from a menu by : Do form InvForm)
I now want to put a button on my Customer Transaction Screen, which, if selected, prints just the one Invoice.
In that all the work has already been done in my InvForm, I wonder is the following feasible:
From my Customer screen have a button that says Print Highlighted Invoice and does following:
1. Loads up InvForm (But makes it invisible)
2. Sets a few properties of the form to say I am printing ONE Inv only
3. Runs the code on the Selct and Print Buttons of the form
4. .... the Printer dialogue should come up
5. Unloads the InvForm
I am trying to use my exisitng InvForm and methods but do it in the background.
Is this feasible and I'd appreciate any pointers ?
regards,
Gerard
1.
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