Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help required with VFP5 Automation Server
Message
De
18/06/1998 16:31:58
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, États-Unis
 
 
À
18/06/1998 13:53:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00109600
Message ID:
00109673
Vues:
31
>I am trying to achieve the following, and I wondered if some kind person could give me the basics and pseudo code for it.
>
>A VB comms program, which is continuously running, needs to print a VFP report whenever it has received a certain message. This seems the ideal situation for an Automation Server. The VFP server needs to be passed a job number, perform an SQL SELECT on various Fox tables, and report the result to a printer.
>
>How should the VB program call the VFP Automation Server, and how should the VFP Automation Server be constructed (and built) to receive the job and print it. The job will always exist.
>
>TIA, Kevin

The VB program can call the VFP server with the Createobject command, something similar to the following:

VB code

DIM oVFPServer as Object
SET oVFPServer = createobject("VFPServer.Report")
oVFPServer.PrintReport(1) ' 1 is the job number you want to pass


In VFP you can create an olepublic PrintReport method in a class that accepts the job number using the lparameters statement.

Let me know if you need more info.
Ryan Hirschey
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform