大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
How to RegisterTSCActiveX.Dll File.
十年的思茅网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。网络营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整思茅建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联公司从事“思茅网站设计”,“思茅网站推广”以来,每个客户项目都认真落实执行。
Please copy the two DLL files (TSCActiveX.dll, TSCLIB.dll) intothe folder systemunderthe Windows system disk. Ex: C:\windows\system\.
Please register the TSCActiveX.dllby the Regsvr32.exe. Ex:
Then you can program an ASP filewith TSCActiveX.DLL.
ActiveX.Dll Functions Description.
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXabout()
Description: Display the DLL version on the screen.
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXopenport(ByVal PrinterName AsString)
Description: Start the Windows printer spool.
Parameter:
PrinterName : String, forlocal printer, please specified the printer driver name. For network printer,please specified the UNC path and printer name.
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXdownloadpcx(ByVal Filename AsString, ByVal ImageName As String)
Description: Download mono PCX graphic files to the printer
Parameter:
Filename: string; file name (including file retrieval path)
ImageName : string,names of files that are to be downloaded in the printer memory (Please usecapital letters).
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXsetup(ByVal LabelWidth As String,ByVal LabelHeight As String, ByVal Speed As String, ByVal Density As String,ByVal Sensor As String, ByVal Vertical As String, ByVal Offset As String)
Description: Set up label width, label height, print speed, print density, sensor type, gap/black markvertical distance、gap/black mark shiftdistance.
Parameter:
LabelWidth: string, sets up label width; unit: mm
LabelHeight: string, sets up label height; unit: mm
Speed : string, setsup print speed, (selectable print speeds vary on different printer models)
1.0: setsprint speed at 1.0"/sec
1.5: setsprint speed at 1.5"/sec
2.0: setsprint speed at 2.0"/sec
3.0: setsprint speed at 3.0"/sec
4.0: setsprint speed at 4.0"/sec
6.0: setsprint speed at 6.0"/sec
8.0: setsprint speed at 8.0"/sec
10.0: setsprint speed at 10.0"/sec
Density: string, sets up print density
0~15,the greater the number, the darker theprinting
Sensor: string, sets up the sensor type to be used
0: signifiesthat vertical gap sensor is to be used
1: signifiesthat black mark sensor is to be used
Vertical: string, setsup vertical gap height of the gap/black mark; unit: mm
Offset : string, setsup shift distance of the gap/black mark; unit:: mm; in the case of the averagelabel, set this parameter to be 0.
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXformfeed()
Description: Skip to nextpage (of label); this function is to be used after setup.
-------------------------------------------------------------------------------------------------------TSCActiveX.TSCLIB.ActiveXnobackfeed()
Description: disable thebackfeed function
-------------------------------------------------------------------------------------------------------TSCActiveX.TSCLIB.ActiveXsendcommand(ByVal command AsString)
Description: Sendsbuilt-in commands to the bar code printer
Parameter: Refer toTSPL for details
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXclearbuffer()
Description: Clearprinter’s p_w_picpath buffer.
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXwindowsfont(ByValX As Long, ByVal Y As Long, ByVal Fontheight As Long, ByVal Rotation As Long,ByVal Fontstyle As Long, ByVal Fontunderline As Long, ByVal FaceName As String,ByVal TextContent As String)
Description: UseWindows font to print text.
Parameter:
X: Integer, thestarting point of the text along the X direction, given in points
Y: Integer, thestarting point of the text along the Y direction, given in points
Fontheight: Integer, the font height, given in points.
Rotation:Integer, rotation in counter clockwise direction
0 -> 0degree
90-> 90 degree
180-> 180degree
270-> 270degree
Fontstyle: Integer, font style
0-> Normal
1-> Italic
2-> Bold
3-> Boldand Italic
Fontunderline: Integer, font with underline
0-> Withoutunderline
1-> Withunderline
FaceName : String, fonttype face. Specify the true type font name. For example: Arial, Times newRoman.
TextContent: String, text to be printed.
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXbarcode(ByValX As String, ByVal Y As String, ByVal CodeType As String, ByVal Height AsString, ByVal Readable As String, ByVal Rotation As String, ByVal Narrow AsString, ByVal Wide As String, ByVal Code As String)
Description: Usebuilt-in bar code formats to print
Parameter:
X: string; thestarting point of the bar code along the X direction, given in points (of 200DPI, 1 point=1/8 mm; of 300 DPI, 1point=1/12 mm)
Y: string; thestarting point of the bar code along the Y direction, given in points (of 200DPI, 1 point=1/8 mm; of 300 DPI, 1 point=1/12 mm)
CodeType: string
128 : Code 128, switching code subset A, B, C automatically
128M : Code 128, switching code subset A,B, C manually.
EAN128 : Code 128, switching code subset A, B, Cautomatically
25 : Interleaved 2 of 5
25C : Interleaved 2 of 5 with check digits
39 : Code 39
39C : Code 39 with check digits
93 : Code 93
EAN13 : EAN 13
EAN13+2 : EAN 13 with 2 digits add-on
EAN13+5 : EAN 13 with 5 digits add-on
EAN8 : EAN 8
EAN8+2 : EAN 8 with 2 digits add-on
EAN8+5 : EAN 8 with 5 digits add-on
CODA : Codabar
POST : Postnet
UPCA : UPC-A
UPCA+2 : UPC-A with 2 digits add-on
UPCA+5 : UPC-A with 5 digits add-on
UPCE : UPC-E
UPCE+2 : UPC-E with 2 digits add-on
UPCE+5 : UPC-E with 5 digits add-on
Height: string; sets up bar code height, given in points
Readable : string, setsup whether to print human recognizable interpretation (text) or not.
0: prints nointerpretation
1: printsinterpretation
Rotation: string; sets up rotation degrees
0: rotates 0 degree
90: rotates 90 degrees
180: rotates180 degrees
270: rotates 270 degrees
Narrow: string; sets up narrow bar ratio, refer to TSPL user's manual
Wide:string; sets up narrow bar ratio, refer to TSPL user's manual
Code:string; bar code content
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXprinterfont(ByValX As String, ByVal Y As String, ByVal FontName As String, ByVal Rotation AsString, ByVal Xmul As String, ByVal Ymul As String, ByVal Content As String)
Description: Useprinter built-in fonts to print
Parameter:
X: string; thestarting point of text (character string) along the X direction, given inpoints (of 200 DPI, 1 point=1/8 mm; of 300 DPI, 1 point=1/12 mm)
Y: string; thestarting point of text (character string) along the Y direction, given inpoints (of 200 DPI, 1 point=1/8 mm; of 300 DPI, 1 point=1/12 mm)
FontName: string; built-in font type name, 12kinds in sum
1: 8*/12 dots
2: 12*20 dots
3: 16*24 dots
4: 24*32 dots
5: 32*48 dots
TST24.BF2: Traditional Chinese 24*24
TST16.BF2: Traditional Chinese 16*16
TTT24.BF2: TraditionalChinese 24*24 (Telecommunication Code)
TSS24.BF2: Simplified Chinese 24*24
TSS16.BF2: Simplified Chinese 16*16
K: Japan, Korean font 24*24,
L: Japan Korean font16*16
Rotation : string; setsup the rotation degree of the text (character string)
0: rotates 0 degree
90: rotate 90 degrees
180: rotate 180 degrees
270: rotate 270 degrees
Xmul : string; setsup the magnification rate of text (character string) along the X direction,range: 1~8
Ymul : string; setsup the magnification rate of text (character string) along the Y direction,range: 1~8
Content: string; prints the content of text(character string)
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXprintlabel(ByValNumberOfSet As String, ByVal NumberOfCopy As String)
Description:Print label content
Parameter:
NumberOfSet: string; sets up the number of label sets
NumberOfCopy: string, sets up the number of print copies
-------------------------------------------------------------------------------------------------------
TSCActiveX.TSCLIB.ActiveXcloseport()
Description: Close Windows printer spool.