I currently have a VB program that prints barcode labels to the printer directly using the printer.print method.
It prints a box and some text and the barcodes are printed using a 3rd party control that prints using its own method, eg.
BC1.PaintAt Printer.hdc, (1440 / Printer.TwipsPerPixelX) + (iWidx * iWidth / Printer.TwipsPerPixelX), iBline, 2400 / Printer.TwipsPerPixelX, 576 / Printer.TwipsPerPixelY
I want to transfer this concept to the web. A remote supplier needs to be able to print these labels but I don't have a clue as to how printing works in vbscript.
The 3rd party control states this in the help file:
BarcodeX control has COM interface “CbarcodeX” and it has these methods;
CreateBMP(Filename, BarcodeType, BarcodeCaption, ShowText, Width, Height, StretchMode, FontName, FontSize)
CreatePNG(Filename, BarcodeType, BarcodeCaption, ShowText, Width, Height, StretchMode, FontName, FontSize)
GetPNGStream (BarcodeType, Caption, ShowText, Width, Height, StretchMode, FontName, FontSize)
Here’s VBScript example:
Dim bc
Set bc=CreateObject("BarcodeX.CBarcodeX.1")
bc.CreateBMP "c:\bcx.bmp",0,"1234567890",1,200,100,1,"Arial",12
bc.CreatePNG "c:\bcx.png",0,"1234567890",1,200,100,1,"Arial",12
or, for out-of-memory streaming
<%
dim bc
set bc=Server.CreateObject("BarcodeX.CBarcodeX.1")
Response.ContentyType="image/png"
Response.BinaryWrite bc.GetPNGStream(0,"123123123",1,320,240,0,"Arial",20)
set bc = Nothing
%>
I realise that its a lot to ask and I don't want to take advantage of anyone......but where the hell do I start??
TIA
Clegg
It prints a box and some text and the barcodes are printed using a 3rd party control that prints using its own method, eg.
BC1.PaintAt Printer.hdc, (1440 / Printer.TwipsPerPixelX) + (iWidx * iWidth / Printer.TwipsPerPixelX), iBline, 2400 / Printer.TwipsPerPixelX, 576 / Printer.TwipsPerPixelY
I want to transfer this concept to the web. A remote supplier needs to be able to print these labels but I don't have a clue as to how printing works in vbscript.
The 3rd party control states this in the help file:
BarcodeX control has COM interface “CbarcodeX” and it has these methods;
CreateBMP(Filename, BarcodeType, BarcodeCaption, ShowText, Width, Height, StretchMode, FontName, FontSize)
CreatePNG(Filename, BarcodeType, BarcodeCaption, ShowText, Width, Height, StretchMode, FontName, FontSize)
GetPNGStream (BarcodeType, Caption, ShowText, Width, Height, StretchMode, FontName, FontSize)
Here’s VBScript example:
Dim bc
Set bc=CreateObject("BarcodeX.CBarcodeX.1")
bc.CreateBMP "c:\bcx.bmp",0,"1234567890",1,200,100,1,"Arial",12
bc.CreatePNG "c:\bcx.png",0,"1234567890",1,200,100,1,"Arial",12
or, for out-of-memory streaming
<%
dim bc
set bc=Server.CreateObject("BarcodeX.CBarcodeX.1")
Response.ContentyType="image/png"
Response.BinaryWrite bc.GetPNGStream(0,"123123123",1,320,240,0,"Arial",20)
set bc = Nothing
%>
I realise that its a lot to ask and I don't want to take advantage of anyone......but where the hell do I start??
TIA
Clegg