Developers

Welcome to the Swecoin US developers center. Here you will find links to our development resources, so you can make best use of the advanced features of our printers and drivers.

Status Monitoring

Custom paper sizes

Extra documentation and resources

 

Status Monitoring

Our UNIDRV-based drivers for Windows 2000/XP/2003 include a Language Monitor component (LM), which enables realtime bidirectional communication between the printer and host. This allows for advanced status monitoring. This status monitoring can occur in two ways: query-based (where you ask for status and then read a response) and event-based (where the LM will issue an event notificaition when the printer status changes).

Documentation:

TTP Language Monitor Implementation Guide (v2.3.9)

Sample Application:

SwPrint3 (173KB ZIP). This is a programming sample, in VC++ 6 format. It is commented to correspond with the LM Implementation Guide above.

More samples (635KB ZIP). This package contains samples and documentation for using status monitoring with 1) Windows API GetPrinterData and 2) an ATL COM Wrapper object.

 

Custom Paper Sizes

In Windows, printing is done based on "forms", or predefined page sizes. When you are in Page Mode (in the Swecoin driver), Windows splits the print job into individual pages of a given size. By default, this is a 16" long form on the TTP 10x0, 20x0, and 70x0 printers, and a Letter size (8.5" x 11") form on the TTP8x00 series. If you wish to have a fixed page size other than this, you must define new forms.

Download a PDF guide to this process.

To do this, right click on a blank portion of the Printers & Faxes Control Panel and select Server Properties:

To create a new form, you must base it on one of the existing forms. For example, to get a 175mm long form for the TTP10x0, select Roll Paper 58mm from the forms list. Check the box "Create a new form", give it a name, and modify the page sizes.

Click Save Form and then hit OK.

Now you must tell the driver that you wish to use this new form. Right click the printer and go to Printing Preferences, then Advanced. Select the form you just made in the box labeled "Paper Size".

 

Extra Documentation and Resources

Full Windows driver Documentation: 622KB PDF.

Driver update and Setup procedures: 177KB PDF.

Sending raw data through driver to printer: In some cases, you may wish to send Swecoin printer commands to a printer, even while using the Windows driver. To do this, you must manually construct a print job that contains the control codes you wish to use. Here you will find a function that does this. (Written in VC++ 6.)

Restricting user rights: In some cases you may wish to run your kiosk software as a user with less-than-Administrative privileges. This guide (182KB PDF) shows how to do this in such a way that your monitoring will still function.

Data Flow Control: This brief guide (64KB PDF) illustrates how a print job is sent to the printer and how the Language Monitor functions must be synchronized with the printer operations.

 
 
Swecoin US, Inc. Privacy Policy & Site Terms
Page content ©2006 Swecoin International