오늘 첨부한 TSC 바코드 프린터 관련 자료들입니다.
프로그램 개발 할 때 바코드프린터로 출력할 내용 중 한글이 포함되어있을 경우에는 커맨드는 사용하지 마세요.
제가 알기로는 아직까지 한글폰트가 없는걸로 알고 있으며, TSCLIB.dll을 이용해 출력하면 됩니다.
TSCLIB.dll 라이브러리 메뉴얼
TSC_TSPL_TSPL2_Programming.pdf
TSC 바코드 커맨드 메뉴얼
TSCLIB 라이브러리(64비트)
TSCLIB 라이브러리(32비트)
[DllImport("TSCLIB.dll", EntryPoint = "about")]
public static extern int about();
[DllImport("TSCLIB.dll", EntryPoint = "openport")]
public static extern int openport(string printername);
[DllImport("TSCLIB.dll", EntryPoint = "barcode")]
public static extern int barcode(string x, string y, string type,
string height, string readable, string rotation,
string narrow, string wide, string code);
[DllImport("TSCLIB.dll", EntryPoint = "clearbuffer")]
public static extern int clearbuffer();
[DllImport("TSCLIB.dll", EntryPoint = "closeport")]
public static extern int closeport();
[DllImport("TSCLIB.dll", EntryPoint = "downloadpcx")]
public static extern int downloadpcx(string filename, string image_name);
[DllImport("TSCLIB.dll", EntryPoint = "formfeed")]
public static extern int formfeed();
[DllImport("TSCLIB.dll", EntryPoint = "nobackfeed")]
public static extern int nobackfeed();
[DllImport("TSCLIB.dll", EntryPoint = "printerfont")]
public static extern int printerfont(string x, string y, string fonttype,
string rotation, string xmul, string ymul,
string text);
[DllImport("TSCLIB.dll", EntryPoint = "printlabel")]
public static extern int printlabel(string set, string copy);
[DllImport("TSCLIB.dll", EntryPoint = "sendcommand")]
public static extern int sendcommand(string printercommand);
[DllImport("TSCLIB.dll", EntryPoint = "setup")]
public static extern int setup(string width, string height,
string speed, string density,
string sensor, string vertical,
string offset);
[DllImport("TSCLIB.dll", EntryPoint = "windowsfont")]
public static extern int windowsfont(int x, int y, int fontheight,
int rotation, int fontstyle, int fontunderline,
string szFaceName, string content);
'C#' 카테고리의 다른 글
[C#]임의의 폴더 이름 또는 임의의 파일 이름 구하기 예제 (0) | 2016.03.03 |
---|---|
[C#/PDA]Path.ChangeExtension 예제(확장자 변경) (0) | 2016.03.03 |
[C#/PDA]datagrid 항목 추가(Row Add) 및 중복확인 예제 (0) | 2016.02.24 |
[C#/PDA]SQLite LIMIT 사용 예제 (0) | 2016.02.24 |
[C#]USB 장치 인식 예제 (0) | 2016.02.23 |