资源简介
TSC打印机C#调用源码,注意要在C盘windows\system32目录下放置TSCLIB.dll和TSCLIB.lib文件
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace TSCLIB_DLL_IN_C_Sharp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
//TSCLIB_DLL.about(); //Show the DLL version
TSCLIB_DLL.openport(“TSC TTP-344M Plus“); //Open specified printer driver
TSCLIB_DLL.setup(“100“ “63.5“ “4“ “8“ “0“ “0“ “0“); //Setup the media size and sensor type info
TSCLIB_DLL.clearbuffer(); //Clear image buffer
TSCLIB_DLL.barcode(“100“ “100“ “128“ “100“ “1“ “0“ “2“ “2“ “Barcode Test“); //Drawing barcode
TSCLIB_DLL.printerfont(“100“ “250“ “3“ “0“ “1“ “1“ “Print Font Test“); //Drawing printer font
TSCLIB_DLL.windowsfont(100 300 24 0 0 0 “ARIAL“ “Windows Arial Font Test“); //Draw windows font
TSCLIB_DLL.downloadpcx(“UL.PCX“ “UL.PCX“); //Download PCX file into printer
TSCLIB_DLL.sendcommand(“PUTPCX 100400\“UL.PCX\““); //Drawing PCX graphic
TSCLIB_DLL.printlabel(“1“ “1“); //Print labels
TSCLIB_DLL.closeport(); //Close specified printer driver
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5612 2008-04-16 08:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\Properties\Resources.resx
文件 249 2008-04-16 08:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\Properties\Settings.settings
文件 1217 2008-04-16 08:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\Properties\AssemblyInfo.cs
文件 2927 2008-04-16 08:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\Properties\Resources.Designer.cs
文件 1105 2008-04-16 08:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\Properties\Settings.Designer.cs
文件 3249 2008-04-16 09:11 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\TSCLIB_DLL_IN_C_Sharp.csproj
文件 5632 2005-12-09 14:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Debug\TSCLIB_DLL_IN_C_Sharp.vshost.exe
文件 20480 2008-04-16 09:32 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Debug\TSCLIB_DLL_IN_C_Sharp.exe
文件 24064 2008-04-16 09:32 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Debug\TSCLIB_DLL_IN_C_Sharp.pdb
文件 94208 2007-08-06 11:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Debug\TSCLIB.dll
文件 5229 1996-05-09 08:49 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Debug\UL.PCX
文件 5632 2005-12-09 14:38 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Release\TSCLIB_DLL_IN_C_Sharp.vshost.exe
文件 94208 2007-08-06 11:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Release\TSCLIB.dll
文件 5229 1996-05-09 08:49 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Release\UL.PCX
文件 20480 2008-04-16 09:43 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Release\TSCLIB_DLL_IN_C_Sharp.exe
文件 24064 2008-04-16 09:43 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\bin\Release\TSCLIB_DLL_IN_C_Sharp.pdb
文件 180 2008-04-16 08:49 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\TSCLIB_DLL_IN_C_Sharp.Properties.Resources.resources
文件 24064 2008-04-16 09:32 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\TSCLIB_DLL_IN_C_Sharp.pdb
文件 20480 2008-04-16 09:32 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\TSCLIB_DLL_IN_C_Sharp.exe
文件 180 2008-04-16 09:11 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\TSCLIB_DLL_IN_C_Sharp.Form1.resources
文件 842 2008-04-16 09:11 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\TSCLIB_DLL_IN_C_Sharp.csproj.GenerateResource.Cache
文件 94208 2007-08-06 11:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\TSCLIB.dll
文件 5229 1996-05-09 08:49 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Debug\UL.PCX
文件 748 2008-04-16 09:51 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\TSCLIB_DLL_IN_C_Sharp.csproj.FileList.txt
文件 94208 2007-08-06 11:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Release\TSCLIB.dll
文件 5229 1996-05-09 08:49 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Release\UL.PCX
文件 180 2008-04-16 09:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Release\TSCLIB_DLL_IN_C_Sharp.Form1.resources
文件 180 2008-04-16 09:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Release\TSCLIB_DLL_IN_C_Sharp.Properties.Resources.resources
文件 842 2008-04-16 09:42 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Release\TSCLIB_DLL_IN_C_Sharp.csproj.GenerateResource.Cache
文件 24064 2008-04-16 09:43 TSCLIB_DLL_IN_VCsharp_2005\TSCLIB_DLL_IN_C_Sharp\obj\Release\TSCLIB_DLL_IN_C_Sharp.pdb
............此处省略22个文件信息
- 上一篇:c# 实现类似于电脑版微信的截图功能
- 下一篇:C#东芝打印源码
评论
共有 条评论