-
2D (Data matrix) PCL
Hi,
I am trying to create a 2D (Data matrix) barcode to a printer using PCL escape code...anyone please have the PCL which will allow me to create a 2D barcode using programming with PCL code?
Many thanks,
Wilhelm
-
Welcome to DevX 
What kind of printer? Does it have the correct drivers for this type of endeavor?
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-
Maybe you can try to create Data Matrix in .net.
It's easy to create and print 2D barcodes in .net.
In asp.net, three ways are supported:
1,drag and drop
2, Class library
3,IIS manegement console.
Hope it helps!
-
Now I am creating Data Matrix in VB.NET. Here is a sample code to have a try:
Code:
Imports OnBarcode.Barcode
Dim barcode As DataMatrix = New DataMatrix
' Data Matrix Barcode Basic Settings
barcode.Data = "112233445566"
barcode.DataMode = DataMatrixDataMode.ASCII
'if your selected format mode doesnot have enough space to encode your data,
'the library will choose the right format mode for you automatically.
barcode.FormatMode = DataMatrixFormatMode.Format_48X48
'Set the ProcessTilde property to true, if you want use the tilde character "~"
'to specify special characters in the input data. Default is false.
'1) 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255);
' ASCII character '~' is presented by ~126;
' Strings from "~256" to "~299" are unused
' modified to FS, GS, RS and US respectively.
'2) 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
' Strings from "~665536" to "~699999" are unused
'3) for GS1 AI Code:
' ~ai2: AI with 2 digits
' ~ai3: AI with 3 digits
' ~ai4: AI with 4 digits
' ~ai5: AI with 5 digits
' ~ai6: AI with 6 digits
' ~ai7: AI with 7 digits
'4) ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
'5) ~rp: Reader Programming (for ASCII mode and Auto mode only)
'6) ~m5: 05 Macro (for ASCII mode and Auto mode only)
'7) ~m6: 06 Macro (for ASCII mode and Auto mode only)
barcode.ProcessTilde = True
' Barcode Size Related Settings
barcode.UOM = UnitOfMeasure.PIXEL
barcode.X = 3
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.TopMargin = 0
barcode.BottomMargin = 0
barcode.Resolution = 96
barcode.Rotate = Rotate.Rotate0
' Image format setting
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()
barcode.drawBarcode("c://data-matrix.gif")
Last edited by Hack; Yesterday at 06:56 AM.
Reason: Added Code Tags
Similar Threads
-
By chupacabra in forum VB Classic
Replies: 5
Last Post: 08-09-2006, 04:20 PM
-
By helme_syahiemie in forum VB Classic
Replies: 1
Last Post: 04-06-2006, 08:39 PM
-
By Tim Frost in forum xml.announcements
Replies: 0
Last Post: 04-02-2001, 10:53 AM
-
By sb in forum VB Classic
Replies: 0
Last Post: 07-22-2000, 04:07 AM
-
By William Gaddam in forum VB Classic
Replies: 1
Last Post: 05-02-2000, 09:19 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks