Recently in bar code printing in the webpage, ActiveX DLL how output barcode ima

Recently in Webpage barcode in print, ASP, development components generated bar code, using the ActiveX DLL, can output text, but do not know how the output image method



Public Function DrewCode(ByVal Str As String)
DrewCode = Form1.Picture1.Image
End Function

Private Sub Class_Initialize()
Load Form1
End Sub
Private Sub Class_Terminate()
Unload Form1
End Sub

Started by Phil at February 07, 2016 - 8:43 PM

'Will draw a good bar code saved as image files, picture files on the server to return path, and then turned into a picture of URL in Webpage display. 
Public Function DrewCode(ByVal Str As String)
dim imgPath as string
'The path to save the imgPath image file on the server.
savepicture form1.picture.image,impPath

DrewCode = imgpath
End Function

Posted by Marico at December 04, 2016 - 4:10 PM

It is not to generate a lot of pictures?
I found a method on the Internet, the pictures into a stream or array, so it can be returned directly.,
The direct use of Response.BinaryWrite (ASP) output is the most simple,



But the components can not download, can not test, who uploads

Posted by Phil at December 10, 2016 - 4:49 PM

This kind of thing with ActiveX is not environmental protection, ha ha.
Suggest that you have a look others using ASP generated code picture examples, directly generated picture in ASP.

Posted by Keith at December 25, 2016 - 4:59 PM

ASP bar code, a little make fun of. C# go, ActiveX pretty good, necessary and every kind of bar code. Can also be encrypted

Posted by Phil at December 26, 2016 - 5:51 PM

Oh, you only make fun of in my opinion, to a bar code, using ActiveX, one is not convenient, the two is poor compatibility, three also relates to browser security problems (if want safety, but also the annual pay to get certificate). The generated image data with ASP, green environmental protection complete, not what the security and compatibility issues, it is also simple to use, only need to understand the basic image file format can be such image generation is very simple, such as the BMP format data, for the monochromatic bar code, using the BMP data is small, of course, the GIF format is also very simple, usually without component verification code born Chengdu is used in BMP or GIF format. If you know these things, you will not say it is make fun of, this technology can be said to be the image processing technology based on some, this technology is make fun of, that is not what technology or development at all.

Posted by Keith at January 01, 2017 - 8:29 PM

ASP barcode generation code, there is no online at,
I made with ActiveX controls, ASP calls, and point the browser has no relationship, but also can control whether the software registration and the like,

By VB ActiveX generated graphics, code online class get, as long as the change in output mode can be, much simpler. At the same time, we have their own server, virtual host items not on the network.

Posted by Phil at January 01, 2017 - 8:41 PM

I want code39 bar code template, ASP no, I don't know if you have, if any, solution ASP of course is also very good

Posted by Phil at January 05, 2017 - 6:28 PM

Code_39 = "104,578,194,704,98,608,224,74,584,200,530,146,656,50,560,176,26,536,152,56,518,134,644,38,548,164,14,524,140,44,770,386,896,290,800,416,266,776,392,336,324,276,84,296"
Code_39 = "52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42,148"

Code_39Str = "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,*"

Posted by Keith at January 09, 2017 - 7:39 PM

One is with interval coding, one is free of interval encoding

Posted by Keith at January 11, 2017 - 7:28 PM