Consultor Eletrônico



Kbase P25814: How to run a .p from WebSpeed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to run a .p from WebSpeed

FIX:

A small example that makes it possible to print/run a .p from WebSpeed. This example is using OS-Command which might give security holes.

-----------start-print.html------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META NAME="AUTHOR" CONTENT="Your Name">
<TITLE>WebSpeed Script</TITLE>
<SCRIPT LANGUAGE="SpeedScript">
CREATE WIDGET-POOL.
</SCRIPT>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="SpeedScript">
/*------------------------------------------------------------------
File:
Description:
Created:
-------------------------------------------------------------------*/

OS-COMMAND SILENT (<ptah to your progress instalaltion>\DLC\bin\prowin32.exe -b -p <path to your working directory>\print.p -db sports2000 -S 9999 -H localhost -N tcp).
</SCRIPT>

<h3> THE PRINTING HAS BEEN DONE<h3>

</BODY>
</HTML>
-----------start-print.html------------------------------------------------------


-----------print.p--------------------------------------------------------------
OUTPUT TO PRINTER \\emeafs\emeaetsc2.
FOR EACH customer WHERE comment <> "":
DISPLAY custnum NAME.
END.
OUTPUT CLOSE.
-----------print.p--------------------------------------------------------------