Restaurant+asp.net+palmtop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paulo

    Restaurant+asp.net+palmtop

    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#


  • George Ter-Saakov

    #2
    Re: Restaurant+asp. net+palmtop

    I suggest a small compact printer with print server port (sometimes called
    ZEBRANET).
    Like this one Zebra TLP2844
    8XBET 8xbet.dev – Nhà cái uy tín hàng đầu châu Âu châu Á 2026, cung cấp cá cược thể thao, casino, game slot, lô đề và khuyến mãi hấp dẫn...


    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 SendBytesToPrin ter(byte[] p)

    {

    try

    {

    IPEndPoint ipEndPoint;

    ipEndPoint = new IPEndPoint(IPAd dress.Parse(_sN ame), 9100);

    Socket socket;

    using (socket = new Socket(

    AddressFamily.I nterNetwork,

    SocketType.Stre am,

    ProtocolType.Tc p

    ))

    {

    socket.Connect( ipEndPoint);

    socket.Send(p);

    socket.Close();

    }

    return true;

    }

    catch (Exception e)

    {

    //TODO: do something with exception

    return false;

    }

    }





    "Paulo" <eris_paulo@ter ra.com.brwrote in message
    news:%23CJQHfQv IHA.420@TK2MSFT NGP02.phx.gbl.. .
    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#
    >

    Comment

    • Paulo

      #3
      Re: Restaurant+asp. net+palmtop

      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@cardone.com escreveu na mensagem
      news:ef0VS2QvIH A.4560@TK2MSFTN GP03.phx.gbl...
      >I suggest a small compact printer with print server port (sometimes called
      >ZEBRANET).
      Like this one Zebra TLP2844
      8XBET 8xbet.dev – Nhà cái uy tín hàng đầu châu Âu châu Á 2026, cung cấp cá cược thể thao, casino, game slot, lô đề và khuyến mãi hấp dẫn...

      >
      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 SendBytesToPrin ter(byte[] p)
      >
      {
      >
      try
      >
      {
      >
      IPEndPoint ipEndPoint;
      >
      ipEndPoint = new IPEndPoint(IPAd dress.Parse(_sN ame), 9100);
      >
      Socket socket;
      >
      using (socket = new Socket(
      >
      AddressFamily.I nterNetwork,
      >
      SocketType.Stre am,
      >
      ProtocolType.Tc p
      >
      ))
      >
      {
      >
      socket.Connect( ipEndPoint);
      >
      socket.Send(p);
      >
      socket.Close();
      >
      }
      >
      return true;
      >
      }
      >
      catch (Exception e)
      >
      {
      >
      //TODO: do something with exception
      >
      return false;
      >
      }
      >
      }
      >
      >
      >
      >
      >
      "Paulo" <eris_paulo@ter ra.com.brwrote in message
      news:%23CJQHfQv IHA.420@TK2MSFT NGP02.phx.gbl.. .
      >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#
      >>
      >
      >

      Comment

      • George Ter-Saakov

        #4
        Re: Restaurant+asp. net+palmtop

        Yes, otherwise how you going to connect to it? But you do not need a
        computer.

        Several options

        1. You can buy a print server (they cost $20-$50)separatelly from printer
        but then you will additional box and AC adapter. Or you can by the one that
        is very small and do not need power (it takes it from printer port).


        2. You can buy printer with already built in network interface.

        George.




        "Paulo" <eris_paulo@ter ra.com.brwrote in message
        news:udg$BJRvIH A.1688@TK2MSFTN GP06.phx.gbl...
        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@cardone.com escreveu na mensagem
        news:ef0VS2QvIH A.4560@TK2MSFTN GP03.phx.gbl...
        >>I suggest a small compact printer with print server port (sometimes called
        >>ZEBRANET).
        >Like this one Zebra TLP2844
        >http://www.systemid.com/barcode_prin...ra_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 SendBytesToPrin ter(byte[] p)
        >>
        >{
        >>
        >try
        >>
        >{
        >>
        >IPEndPoint ipEndPoint;
        >>
        >ipEndPoint = new IPEndPoint(IPAd dress.Parse(_sN ame), 9100);
        >>
        >Socket socket;
        >>
        >using (socket = new Socket(
        >>
        >AddressFamily. InterNetwork,
        >>
        >SocketType.Str eam,
        >>
        >ProtocolType.T cp
        >>
        >))
        >>
        >{
        >>
        >socket.Connect (ipEndPoint);
        >>
        >socket.Send(p) ;
        >>
        >socket.Close() ;
        >>
        >}
        >>
        >return true;
        >>
        >}
        >>
        >catch (Exception e)
        >>
        >{
        >>
        >//TODO: do something with exception
        >>
        >return false;
        >>
        >}
        >>
        >}
        >>
        >>
        >>
        >>
        >>
        >"Paulo" <eris_paulo@ter ra.com.brwrote in message
        >news:%23CJQHfQ vIHA.420@TK2MSF TNGP02.phx.gbl. ..
        >>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#
        >>>
        >>
        >>
        >
        >

        Comment

        • Jeff Dillon

          #5
          Re: Restaurant+asp. net+palmtop

          Where is the web server located? The printer could be attached to that
          machine.

          "Paulo" <eris_paulo@ter ra.com.brwrote in message
          news:%23CJQHfQv IHA.420@TK2MSFT NGP02.phx.gbl.. .
          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#
          >

          Comment

          Working...