Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation server with low resources
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Automation server with low resources
Divers
Thread ID:
00678345
Message ID:
00678345
Vues:
71
I generated an automation EXE server, this only runs a report. I need to do in this way for calling it from a WebService

It works well, but I want that this EXE uses the minimum resources needed, so do you find any tip more or is ok.
DEFINE CLASS imprime2 AS SESSION olepublic

 FUNCTION listado

 DO poner_sets

 USE k:\gestion\datos\001\pt\articulo
 REPORT FORM k:\web\ws\test\listado TO FILE k:\web\ws\test\listado.txt ASCII NOCONSOLE
 CLOSE ALL
 SYS(1104)

 ENDFUNC

ENDDEFINE

PROCEDURE poner_sets
* generales
SET ESCAPE OFF
SET NULLDISPLAY TO ""
SET STATUS BAR OFF

* por defecto de clase session
SET EXCLUSIVE OFF
SET TALK OFF
SET SAFETY OFF

*
SET CENTURY ON
SET COLLATE TO "MACHINE"
SET CONFIRM ON
SET DATE FRENCH
SET DELETED ON
SET EXACT ON
SET NEAR OFF
SET STRICTDATE TO 0

* poner entorno de red
SET LOCK ON
SET MULTILOCKS ON
SET REPROCESS TO 10

SET POINT TO ","
SET SEPARATOR TO "."
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Répondre
Fil
Voir

Click here to load this message in the networking platform