成都创新互联网站制作重庆分公司

TSCActiveX.DLL-PHP-Example-创新互联

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 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.

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


新闻名称:TSCActiveX.DLL-PHP-Example-创新互联
地址分享:http://cxhlcq.com/article/cejpdj.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部