The Tournament Director Forums

Main => Help Me => Topic started by: Stuart Murray on October 30, 2010, 07:25:36 AM

Title: Receipt Template 82mm Thermal Printer
Post by: Stuart Murray on October 30, 2010, 07:25:36 AM
Hi all,

Has anyone made a receipt template for a 82mm Thermal Printer,  I've tried in vain to widen the standard receipt but just can't my head round it!

Anyone who has one made up please get in contact.

Regards
Stuart
Title: Re: Receipt Template 82mm Thermal Printer
Post by: oddapokeren on September 30, 2011, 12:37:15 PM
Hi, I have the same problem. Did you find an answer for it ?

Urgent, tournament tomorrow :)

Thanks :)

Best regards Erik
Title: Re: Receipt Template 82mm Thermal Printer
Post by: Linker_Split on September 30, 2011, 12:47:29 PM
Try this: is for a 80mm

Code: [Select]
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=<charset>" />
    <title>Receipt</title>
  </head>

  <style type="text/css">

    BODY, TD
    {
      background-color: #ffffff;
      color: #000000;
      font-family: Arial;
      font-size: 8pt;
    }

  </style>
  <body>

    <table border="0">
      <tr>
        <td>

          <table border="0" width="100%">
            <tr>
               <td align="center" style="font-size: 17pt"><nobr><IMG SRC="insert link to the image" width="200" height="200"></nobr></td>
            </tr>
            <tr>
              <td align="center"><nobr><date> <time></nobr></td>
            </tr>
            <tr>
              <td align="center"><nobr>Tournament Director: <salesperson></nobr></td>
            </tr>
            <tr>
              <td align="center"><nobr>ticket n. <receiptnumber></nobr></td>
            </tr>
            <tr>
              <td align="center"><nobr><eventname></nobr></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>

          <table border="2" width="100%">
            <tr>
 <td align="left"><nobr>NAME:</nobr></td>
              <td align="right"><nobr><nickname><nobr></td>
</tr>
              <td align="left"><nobr>TABLE:</nobr></td>
              <td align="right"><nobr><tablename><nobr></td>
            </tr>
            <tr>
              <td align="left"><nobr>SEAT:</nobr></td>
              <td align="right"><nobr><seatnumber><nobr></td>
            </tr>
            <tr>
              <td align="left"><nobr>ID PLAYER:</nobr></td>
              <td align="right"><nobr><id><nobr></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="left"><nobr>Total</nobr></td>
              <td align="right"><nobr><total><nobr></td>
            </tr>
          </table>

        </td>
      </tr>
    </table>

  </body>
</html>

I also had problems with this format, but it was related to the Printer settings (paper choosen was not the correct one)
Title: Re: Receipt Template 82mm Thermal Printer
Post by: oddapokeren on September 30, 2011, 02:56:30 PM
Thx, that did the trick :)

Was wondering about the autoprinting, my thermal printer is set as default in the windows printer and faxes. The problem is that when using the auto print function, the print dialogue box is displayed, so I still have to manually press the print button. Do you know how to fix this ?

The default setting in the program is %p (I reckon this is the function that presses the "print" key after the buy in process. Is it possible perhaps that this %p can run twice ? So I don t have to press print in the dialogue box proviced by the printer ?

Thanks :))

Best regards Erik
Title: Re: Receipt Template 82mm Thermal Printer
Post by: Linker_Split on October 01, 2011, 06:29:09 AM
mmm my Thermal Printer doesn't pops up with a printing dialog... i can't help you. my TP is this one:
(http://www.custom.it/immagini/products/pos_printers/KUBE_main.jpg)
Title: Re: Receipt Template 82mm Thermal Printer
Post by: Corey Cooper on October 01, 2011, 08:43:33 PM
The default setting in the program is %p (I reckon this is the function that presses the "print" key after the buy in process. Is it possible perhaps that this %p can run twice ? So I don t have to press print in the dialogue box proviced by the printer ?

Actually, % means to press the "Alt" key and "p" means to press the "p" key.  If, from Internet Explorer, you select File -> Print, you'll get a pretty standard "Print" dialog.  Pressing Alt+P on that dialog is equivalent to clicking the "Print" button.  This is what the default settings are configured for.

You'll need to determine what keypresses are needed from the "Print" dialog that you are seeing (which may be different), and set those keystrokes in the Keystrokes to send field.  The following page describes valid keys combinations you can use:

http://msdn.microsoft.com/en-us/library/8c6yea83.aspx

This will, of course, eventually be in the user manual ... :)
Title: Re: Receipt Template 82mm Thermal Printer
Post by: oddapokeren on October 02, 2011, 08:13:40 AM
Hi, and thank you for a quick reply :)

I agree with you regarding the ALT+P (this produces the print dialogue) But when the print dialogue is there, is there a way for the program to press f.ex "Enter" to confirm the print out ?

Thx :)
Title: Re: Receipt Template 82mm Thermal Printer
Post by: Corey Cooper on October 02, 2011, 11:54:03 AM
Yes.  See the link I provided in the previous post.