TSCActiveX.DLL-PHP-Example
admin
2023-07-01 17:24:15
0

How to RegisterTSCActiveX.Dll File.

Please copy the two DLL files (TSCActiveX.dll, TSCLIB.dll) intothe folder system underthe 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 distancegap/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~15the 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.

 


相关内容

热门资讯

芬尼能源取得电器盒座及热泵专利... 国家知识产权局信息显示,广东芬尼能源技术有限公司取得一项名为“一种电器盒座及热泵”的专利,授权公告号...
数日前起火的广州长江(中国)轻... 5月31日上午,有网友发视频称,广州长江(中国)轻纺城北区发生火情。多名网友发布的视频显示,一栋印有...
原创 就... 看见中国神舟在太空顺利会师,印度又开始蠢蠢欲动了吗? 5月24日晚,中国神舟二十三号载人飞船在酒...
井云推出OPC专项扶持计划:成... 随着人工智能技术加速演进,“一人公司”(OPC,One Person Company)正从概念走向现...
《荷塘月色》AI生成内容占比超... 来源:市场资讯 (来源:辽望观天下) 眼下,2026届高校毕业生正陆续进入论文答辩阶段,不少高校开始...
西班牙神颜公主首次亮相建军节,... 当地时间5月30日,西班牙迎来了武装部队日(Día de las Fuerzas Ar...
被从肯尼迪中心“除名”,特朗普... 新华社北京5月31日电 在法官29日裁定将美国总统特朗普的名字从肯尼迪表演艺术中心移除后,特朗普在社...
卡斯特罗家的六指孙子,被曝已成... 在古巴政坛,卡斯特罗家族始终是一个绕不开的名字。如今,随着美国与古巴之间出现新的接触迹象,一位长期隐...
国际原子能机构:扎波罗热核电站... 当地时间5月30日,国际原子能机构表示,该机构在扎波罗热核电站的团队已要求进入现场,以第一手方式检查...
燃气灶热电偶熄火保护工作原理是... 燃气灶热电偶熄火保护工作原理是什么啊?工作原理如下:当燃具的火焰熄灭的时候,会导致热电偶产生电流下降...