Windows Jiabo gp-3120t bar code small size Barcode
Finally, I attempted to use the parameters and instructions in the Programming Manual.
Here, I would like to thank the technical support provided by an engineer named "uplinter Tao Wei" in Jiabo. Thank you very much. Without you, I may change to another printer before writing this article.
At the same time, we despise the next "Bear Birmingham ?" Technical support is not what you do. If you do not answer your questions or use the sample code, you will send it to me without verification, and ignore my questions.
Bytes ----------------------------------------------------------------------------------------
This article is an original article. repost the article to ensure its integrity and explicitly indicate the source.
Link: http://blog.csdn.net/wlsgzl/article/details/38271403
Commercial printing and publishing are prohibited, and document and book references are declined.
Bytes ----------------------------------------------------------------------------------------
If the personal name mentioned in this Article infringes on your rights, please notify me via private message or leave a message below. I will take appropriate measures to ensure your rights.
=======================================================
Previously, the original idea was to use the Microsoft bar code control to generate a bar code and print it to a printer.
Later, I tried on a piece of paper about 3 × 9 and succeeded.
Therefore, the simulation of 3.4 x paper size, failed.
I carefully thought about the reason: In win7 + vs2010, when using the msbcode9.ocx control in MFC, I can only send the data drawn from the DC where it is located to the printer, this is no different from making images with a printer. Since the screen content is printed to the printer, a proportional scaling is required, which is represented by a variable of the double type. There is no doubt about this. But if int X double is converted to int, there will be a loss, which will lead to some minor changes. There is nothing in the vertical direction, the horizontal direction will affect the width and distance of the bar code details-maybe this is why I failed.
Finally, I can use the method that I wanted to use at the beginning-the layman's leadership killed people, but the construction period was long enough-and directly used the instruction programming provided. In fact, this is much simpler than I use DC to print code.
Bytes ----------------------------------------------------------------------------------------
First, after unremitting efforts, I found the best format and some parameters in 3.4 ×.
(Attempt encoding, density, and speed)
(Comparison of candidate density and speed)
The final optimal parameter is
Code128
Density 3
Speed 4
========================================================== ==========
This manual is really a pitfall. The two PDF files in Chinese and English cannot be compared at all, and even the commands are wrong. Fortunately, we can constantly harass customer service and technical departments.
========================================================== ==========
Some sample code I wrote:
1. Print a barcode
SIZE 35 mm,20 mmGAP 2 mm,0 mmOFFSET 0SET PEEL OFFSHIFT 0 CODEPAGE 437DIRECTION 1,0REFERENCE 8,8DENSITY 3SPEED 4CLSBARCODE 248,8,"128",240,1,90,1,1,"98765"PRINT 1,1EOP
2. Print a series of numbers with counters
SIZE 35 mm,20 mmGAP 2 mm,0 mmOFFSET 0SET PEEL OFFSHIFT 0DENSITY 3SPEED 4DIRECTION 1,0REFERENCE 8,8SET COUNTER @1 -1CLS@1="98765"TEXT 8,8,"2",0,1,1,@1PRINT 5,1EOP
3. Use a counter to print a series of bar codes (their technical support told me to change 128 to m and try it out .)
SIZE 35 mm,20 mmGAP 2 mm,0 mmOFFSET 0SET PEEL OFFSHIFT 0DENSITY 3SPEED 4DIRECTION 1,0REFERENCE 8,8SET COUNTER @1 -1SET HEAD ONSET REPRINT OFFSET PRINTKEY OFFCLS@1="321098"BARCODE 248,8,"128M",240,1,90,1,1,@1PRINT 5,1EOP
========================================================== ===
The above is only my personal conclusion from my experiments over the past two days. It is not universal.
If you have a good method, please do not renew it.
========================================================== ===
Summary:
Speed, density, and encoding will affect the effect. After reading the above text, it is well known.
Different data may also have an impact on the print effect, such as "7", "8", and "9. This is true, because different numbers have different fonts and require different distances.
Continuous printing will also affect the printing effect. For example, I printed 3rd codes at a time using my 200 code segments, and the recognition rate is not satisfactory.
========================================================== ====
PS: I don't know if the speed and speed mean anything when "printing continuously". Note that this is not about English.