C#

[C#]TSC Barcode command manual/TSCLIB.dll manual

선영아 사랑해 2016. 2. 26. 15:15

오늘 첨부한 TSC 바코드 프린터 관련 자료들입니다.


프로그램 개발 할 때 바코드프린터로 출력할 내용 중 한글이 포함되어있을 경우에는 커맨드는 사용하지 마세요.


제가 알기로는 아직까지 한글폰트가 없는걸로 알고 있으며, TSCLIB.dll을 이용해 출력하면 됩니다.


TSC DLL_instruction.pdf

TSCLIB.dll 라이브러리 메뉴얼


TSC_TSPL_TSPL2_Programming.pdf

TSC 바코드 커맨드 메뉴얼


TSCLIB_x64.zip

TSCLIB 라이브러리(64비트)


TSCLIB_x86.zip

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);

TSC_TSPL_TSPL2_Programming.pdf
7.81MB
TSCLIB_x64.zip
0.04MB
TSC DLL_instruction.pdf
0.08MB
TSCLIB_x86.zip
0.04MB