Re: Restaurant+asp.net+palmtop

Tech-Archive recommends: Speed Up your PC by fixing your registry



Do I need a printer that have a ip address? and the asp.net will send data
to this ip ?

Thanks!
"George Ter-Saakov" <gt-nsp@xxxxxxxxxxx> escreveu na mensagem
news:ef0VS2QvIHA.4560@xxxxxxxxxxxxxxxxxxxxxxx
I suggest a small compact printer with print server port (sometimes called
ZEBRANET).
Like this one Zebra TLP2844
http://www.systemid.com/barcode_printers/zebra_tlp2844.asp

Those printers support EPL or ZPL language. It's a simple language and you
do not need a driver for it.


Your ASP.NET application simply sends data via TCP/IP and printer
prints....
No need to have computer on a kitchen. And you do not need separate exe
running in background..

You do not need a driver for those printers. They use EPL language which
is very easy language.
you basically send it commands like ^PO10,20^FSMy Name^XA
And it will print My Name position (10,20)


Below is the code to send bytes to TCP/IP printer.

George
public bool SendBytesToPrinter(byte[] p)

{

try

{

IPEndPoint ipEndPoint;

ipEndPoint = new IPEndPoint(IPAddress.Parse(_sName), 9100);

Socket socket;

using (socket = new Socket(

AddressFamily.InterNetwork,

SocketType.Stream,

ProtocolType.Tcp

))

{

socket.Connect(ipEndPoint);

socket.Send(p);

socket.Close();

}

return true;

}

catch (Exception e)

{

//TODO: do something with exception

return false;

}

}





"Paulo" <eris_paulo@xxxxxxxxxxxx> wrote in message
news:%23CJQHfQvIHA.420@xxxxxxxxxxxxxxxxxxxxxxx
Hi, I finished a asp.net restaurant/bar system, but when the waiter
clicks "send itens" on IE palmtop, it needs to send the itens to a
printer wich will be on the kitchen... What is the best approach doing
that? The pc on kitchen should have a exe running in background that
listens the itens wich arrives on the database and prints it?

What you suggest? Thanks!

VS 2005 asp.net 2.0 C#





.



Relevant Pages

  • Re: Restaurant+asp.net+palmtop
    ... Those printers support EPL or ZPL language. ... IPEndPoint ipEndPoint; ... Socket socket; ... clicks "send itens" on IE palmtop, it needs to send the itens to a ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Restaurant+asp.net+palmtop
    ... Those printers support EPL or ZPL language. ... Socket socket; ... "send itens" on IE palmtop, it needs to send the itens to a printer wich ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: System.Net.Sockets.SocketException -UDP - hier viel Code
    ... Gestartet wird das Senden wie auch das Empfangen von jeweils einer eigenen ... IPEndPoint poi = _socket.LocalEndPoint as IPEndPoint; ... Socket socket = null; ... public CListener_Socket(Queue listenerEvents) ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • UDP Receiver
    ... über UdpClient als auch Socket probiert. ... IPEndPoint remoteep = new IPEndPoint(GroupIP, GroupPort); ... Allerdings hab ich es über Socket ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Socket programming source, help please.
    ... Firstly I know Socket should be in a 'using' clause, I've removed that and error checking so that the code I've posted is just the barebones. ... Then the Socket is created using that IPEndPoint, a timeout added and the data is sent using SendTo - no problem. ... EndPoint is created by casting the new IPEndPoint as an EndPoint. ... that's the way the ReceiveFrom() method is designed. ...
    (microsoft.public.dotnet.languages.csharp)