25-04-18, 07:20 PM
السلام عليكم ورحمة الله تعالى وبركاته
السادة الكرام
هل أستطيع أن أجد لديكم مكتبة DLL لعمل ملصقات الباركود
ألف شكر لكم مسبقا
تحياتي
السادة الكرام
هل أستطيع أن أجد لديكم مكتبة DLL لعمل ملصقات الباركود
ألف شكر لكم مسبقا
تحياتي
Public Function ConvertToData(ByVal MyImage As Image) As Byte()
Dim ms As New MemoryStream()
PicBarCode.BackgroundImage.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp)
Dim mybyte(ms.Length - 1) As Byte
ms.Position = 0
ms.Read(mybyte, 0, ms.Length)
MsgBox(mybyte)
Return mybyte
End Function Private Sub Butcaret_Click(sender As Object, e As EventArgs) Handles Butcaret.Click
Dim Generator As New MessagingToolkit.Barcode.BarcodeEncoder
Generator.IncludeLabel = True
Generator.CustomLabel = Textcod.Text
Try
PictureBox1.Image = New Bitmap(Generator.Encode(MessagingToolkit.Barcode.BarcodeFormat.Code128, Textcod.Text))
Catch ex As Exception
End Try
End Sub Dim Generator As New MessagingToolkit.Barcode.BarcodeEncoder
'Dim br As String = txt_N_Lot.Text & txtCBR.Text
Generator.IncludeLabel = True
Generator.CustomLabel = txt_N_Lot.Text & " " & txtCBR.Text
Generator.Height = 50
Generator.Margin = 0
Generator.MarginSize = 0
Generator.RotateFlipType = RotateFlipType.RotateNoneFlipNone
Generator.LabelPosition = MessagingToolkit.Barcode.LabelPositions.BottomCenter
Generator.LabelFont = New Font("Arial", 9.9F, Drawing.FontStyle.Regular)
Generator.Alignment = MessagingToolkit.Barcode.AlignmentPositions.Left
'HorizontalResolution = HorizontalResolution(90)
'Generator.ProcessTilde = True
'Barcode Size Related Settings
'barcode.Resolution = 96
'PictureBox1.Image = New Bitmap(Generator.Encode(MessagingToolkit.Barcode.BarcodeFormat.Code39, TextBox1.Text))
PicBarCode.BackgroundImage = New Bitmap(Generator.Encode(MessagingToolkit.Barcode.BarcodeFormat.Code128, txt_N_Lot.Text & " " & txtCBR.Text))