You can print whatever custom information you want, including text
from controls, using javascript. You can open up a window with
javascript from the ASP.Net Page. Write what you want to print to the
window. Then have a link to print that window. Add the javascript into
the head on the ASP.NET page in the design view's HTML tab.
<script language =javascript>
function PrintResults()
{
var sOption="toolba r=yes,location= no,directories= yes,menubar=yes ,";
sOption+="scrol lbars=yes,width =750,height=600 ,left=100,top=2 5";
var sWinHTML = document.getEle mentById('MyTex tBox').innerHTM L;
var winprint=window .open("","",sOp tion);
winprint.docume nt.open();
winprint.docume nt.write("<HTML ><Head></Head><Body>")
winprint.docume nt.write("<a href='javascrip t:;'
onClick='window .print();return false'>Print This Page.</a><br>");
winprint.docume nt.write(sWinHT ML);
winprint.docume nt.write("</Body></HTML>")
winprint.docume nt.close();
winprint.focus( );
}
</script>
Paul <pa**@hotmail.c om.invalid> wrote in message news:<zx******* *******@eyeore. home>...
In article <36************ **************@ posting.google. com>, ap
<af********@hot mail.com> writesAs I know it is a server side printing... and is that possible to make it
to client side printing or it must be printed using javascript??
Sorry for late respone....
There was a method of server side printing to a shared printer in a
domain in ASP that used WSH to achieve its result. I've long ago lost
the details, but wondered if there was anything similar in .Net? What I
want to achieve is for a user to be able to enter some details of a
received item and have a ticket/docket print out to attach to the item.
The printer will be attached to a print server (jet direct type) on the
network (Intranet)
P.