This is an old revision of the document!
API Application Example
#include "ThermalPrinter.h"
...
...
int main()
{
int ThermalPrinter;
...
...
if ( thermal_printer_open( &ThermalPrinter ) < 0 )
{
printf( "Error in Open thermal printer\n" );
return -1;
}
...
...
/* 종이 배출 - 입력된 라인만큼 */
thermal_printer_paper_throw( ThermalPrinter, 300/*Line*/ );
...
...
/* 프린터 모델 명 및 드라이버 버전 읽어오기 */
ConvertLength = thermal_printer_read(ThermalPrinter, pVersion, 100);
printf( "Thermal Printer Read [%d : %s]\n", ConvertLength, pVersion );
...
...
/* 비트데이터 출력 읽어오기 */
thermal_printer_print( ThermalPrinter , pBitMapArray, ByteLengthOfData);
...
...
thermal_printer_close( ThermalPrinter );
...
...
}