hellenjack Posted July 24, 2013 Report Share Posted July 24, 2013 Hi, guys. I have a code problem. Recently I want to create Data Matrix barcode in VB.NET. I googled and found this passage which has sample code to do this. I copied it into my program. But it did not work. Why? Here is the sample code:Imports OnBarcode.BarcodeDim barcode As DataMatrix = New DataMatrix' Data Matrix Barcode Basic Settingsbarcode.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 Settingsbarcode.UOM = UnitOfMeasure.PIXEL barcode.X = 3barcode.LeftMargin = 0 barcode.RightMargin = 0barcode.TopMargin = 0 barcode.BottomMargin = 0barcode.Resolution = 96 barcode.Rotate = Rotate.Rotate0' Image format settingbarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()barcode.drawBarcode("c://data-matrix.gif")I read many passages there, including how to generate barcode in VB.NET, etc. I still could not figure it out. Quote Link to comment Share on other sites More sharing options...
theKiwi Posted July 24, 2013 Report Share Posted July 24, 2013 What are you trying to achieve with this and the TNG genealogy software?Maybe with some explanation someone might be able to help you?Roger Quote Link to comment Share on other sites More sharing options...
Arthurabc Posted September 27, 2013 Report Share Posted September 27, 2013 What are you trying to achieve with this and the TNG genealogy software?Maybe with some explanation someone might be able to help you?Roger Barcode Library in Visual Baisc.NET - Installation Download VB.NET barcode control and unzip it. Copy the barcode control dll to the project folder. Open visual studio, find the solution explore and reference, right click reference and select add reference, and add the Aspper barcode control dll to reference.hope it helps. Quote Link to comment Share on other sites More sharing options...
makaveiljojo Posted December 3, 2013 Report Share Posted December 3, 2013 Barcode Library in Visual Baisc.NET - Installation Download VB.NET barcode control and unzip it. Copy the barcode control dll to the project folder. Open visual studio, find the solution explore and reference, right click reference and select add reference, and add the Aspper barcode control dll to reference.hope it helps.Where comes the Aspper barcode control dll? I don't get it. Quote Link to comment Share on other sites More sharing options...
Arthurabc Posted June 11, 2014 Report Share Posted June 11, 2014 Where comes the Aspper barcode control dll? I don't get it.I also don't get what you are asking? You may visit some barcode software sites, and get to know more about VB.NET barcode, maybe you should figure out waht is VB.NET first. Quote Link to comment Share on other sites More sharing options...
makaveiljojo Posted July 29, 2014 Report Share Posted July 29, 2014 I feel quite curious about what above mentioned about the barcode tool. Actually, I am also having problems with code datamatrix generator vb.net, don't know if you have any ideas or not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.