Click here to Skip to main content
15,886,199 members

Comments by musiw (Top 122 by date)

musiw 8-Jan-14 21:47pm View    
the link did help me give ideas...which is i dont need to use window.print() as it dont cut paper.i use print document(). right now i try to install printer driver to sever then goint to configure it to print to local user's pc... any suggestion??
musiw 7-Jan-14 6:46am View    
because printer type EPSON TM-L90 Receipt consider 5 tickets as a 1 page.it doesnt cut the ticket 1 by 1.no matter how i break the page it does nothing.

i try to add separator to repeater(table to display ticket) and print it out from normal A4 printer it works nice.but come to this thermal printer it doesnt break the page/repeater.
musiw 7-Jan-14 2:04am View    
i want to print tickets.currently i able to print ticket.but only one ticket at a time.lets say i want to print ticket for 5persons the thermal printer (EPSON receipt printer) will print it out in a long page.i already do the page break but nothing happen.

so ive code to print for many tickets but it only implement in windows application....so thats my situation...what else i can do to solve this?

my code to print:-

<script type="text/vbscript">
Sub Print()
'print_ticket.style.visibility="hidden"
OLECMDID_PRINT = 6
OLECMDEXECOPT_DONTPROMPTUSER = 2
OLECMDEXECOPT_PROMPTUSER = 1
call WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,1)
'print_ticket.style.visibility="visible"

'if print_ticket.click = true
'dim status


End Sub
document.write "<object ID='WB' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"

<body onload="Print();" öncontextmenu="return false">
<object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> </object>


the code to bypass print dialog.
musiw 20-Oct-13 11:21am View    
i already put all the control in the update panel.but nothing happen.
musiw 10-Sep-13 3:04am View    
thank you for reply.but i dont understand how to implement the way you suggest..

currently my form is like that.many textbox user will have to key in.they want it to be like that.because each textbox has its own category.just like a table and then fill in.

thanks.