------=_NextPart_000_00AB_01C44C96.76152880
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
are you trying to print on a printer that is connected to the server
or to the client ?
This is a very important question :)
Paris
"Muthu" <[EMAIL PROTECTED]> wrote in message =
news:[EMAIL PROTECTED]
Hi Paris Marinakis,
I have to print the values in the Pre-Printed stationery.
For that only i have opened the Printer and using the Open =
|PRN|Printerpath method.
Is there anyother way to acheive this ?
Please help me.
Thanks
Muthu Rajan
"Paris Marinakis" <[EMAIL PROTECTED]> wrote in message =
news:[EMAIL PROTECTED]
Hi,
You cannot print to a device from a csp page. You cannot open files
access the disk etc because that compromises internet
explorer security.
Imagine if an internet page you accessed could open ports
on your pc, or read/write files etc....
So printing from a csp page (same as an html for that purpose)
can only happen by isuing a javascript command window.print()
which would print the contents of the page after the user selects
a printer interactively
What are you trying to print ?
On which computer is that port you try to open ?
On the client pc or on the server ?
Regards
Paris
"Muthu" <[EMAIL PROTECTED]> wrote in message =
news:[EMAIL PROTECTED]
Hi All, =20
I have faced a problem in printing from the CSP page.
I have written a routine to print a report using the following =
statements.
set new=3D"|PRN|\\printerpath
open new::5
use new
w "This is a Test Print"
close new
This routine is working fine through terminal window.but when i =
invoked this routine from the CSP page using #Server method, it throws =
the following error.
"Http request failed, unable to process hyperevents."
Could anyone please help me.
Thanks
Muthu Rajan
------=_NextPart_000_00AB_01C44C96.76152880
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>are you trying to print on a printer that is =
connected to the=20
server</FONT></DIV>
<DIV><FONT size=3D2>or to the client ?</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>This is a very important question :)</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Paris</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Muthu" <<A=20
=
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>>=
wrote=20
in message <A=20
=
href=3D"news:[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
m</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi <FONT face=3D"Times New Roman" =
size=3D3>Paris=20
Marinakis,</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have to print the values in the =
Pre-Printed=20
stationery.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>For that only i have opened the =
Printer and using=20
the Open |PRN|Printerpath method.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there anyother way to acheive this =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Please help me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Muthu Rajan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Paris Marinakis" <<A=20
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>> wrote in =
message <A=20
=
href=3D"news:[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
m</A>...</DIV>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>You cannot print to a device from a csp page. =
You cannot=20
open files</FONT></DIV>
<DIV><FONT size=3D2>access the disk etc because that compromises=20
internet</FONT></DIV>
<DIV><FONT size=3D2>explorer security.</FONT></DIV>
<DIV><FONT size=3D2>Imagine if an internet page you accessed could =
open=20
ports</FONT></DIV>
<DIV><FONT size=3D2>on your pc, or read/write files =
etc....</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>So printing from a csp page (same as =
an html for that=20
purpose)</FONT></DIV>
<DIV><FONT size=3D2>can only happen by isuing a javascript command=20
window.print()</FONT></DIV>
<DIV><FONT size=3D2>which would print the contents of the page after =
the user=20
selects</FONT></DIV>
<DIV><FONT size=3D2>a printer interactively</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>What are you trying to print ?</FONT></DIV>
<DIV><FONT size=3D2>On which computer is that port you try to open=20
?</FONT></DIV>
<DIV><FONT size=3D2>On the client pc or on the server ?</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Regards</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Paris</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Muthu" <<A=20
=
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>>=
=20
wrote in message <A=20
=
href=3D"news:[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
m</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi All, =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have faced a problem in =
printing from the=20
CSP page.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have written a routine to =
print a=20
report using the following statements.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><STRONG> set=20
new=3D"|PRN|\\printerpath</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG> open=20
new::5</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG> use=20
new<BR> w "This is a Test=20
Print"<BR> close new</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>This routine is working fine =
through terminal=20
window.but when i invoked this routine from the CSP page using =
#Server=20
method, it throws the following error.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>"Http request failed, =
unable to=20
process hyperevents."</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Could anyone please help =
me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Muthu=20
Rajan</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00AB_01C44C96.76152880--