i made up this csp page

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>



<body bgcolor="#FFFFFF" text="#000000">

<div align="center">

   <script language="cache" runat="server">

  if %request.Get("Submit")="Print"

  {

  do ##class(MikeRIS2.Visit).print()

  }

  </script>

  <form name="form1" method="post" action="">

    <input type="submit" name="Submit" value="Print">

  </form>

</div>

</body>

</html>
it seems like it should execute my method, but doesnt.
heres the method:
ClassMethod print()

{

   Open "|PRN|"

   use "|PRN|" w "Testing print from a csp page",!

   Close "|PRN|"

}
the method will execute if i run it from the terminal.

any idea what im doing wrong.
thanks,
Mike



Reply via email to