Dim obj As Object
' create BMP file
obj = CreateObject("Morovia.BarcodeActiveX")
obj.Autosize = "0"
obj.ZoomRatio = "1"
obj.BackColor = "16777215"
obj.BorderColor = "0"
obj.BorderStyle = "1"
obj.BorderWidth = "0"
obj.Symbology = MrvBarCdLib.SymbologyEnum.mbxUCC_EAN_128
obj.BarHeight = "200"
obj.BearerBars = False 'False
obj.Measurement = 0
obj.QuietZones = True 'True
obj.Code39OptionalCheckDigit = False 'False
obj.I2of5OptionalCheckDigit = True 'True
obj.Code25OptionalCheckDigit = True 'True
obj.UccEanOptionalCheckDigit = True 'True
'obj.Message = "4157707176960178802000000000390000000000009620050809"
obj.Message = "(415)7707176960178(8020)04305900(3900)0000030395(96)20050623"
obj.NarrowBarWidth = "2"
obj.NarrowToWideRatio = "2"
obj.ShowCheckDigit = "0"
obj.RasterImageResolution = 500
obj.Comment = ""
obj.Comment = "(415)7707176960178(8020)04305900(3900)0000030395(96)20050623"
'obj.Comment = "(415)7707176960178(8020)00000000(3900)0000000000(96)20050809"
obj.CommentAlignment = MrvBarCdLib.AlignmentEnum.mbxAlignCenter
obj.ShowComment = True
obj.CommentOnTop = False
obj.Rotation = MrvBarCdLib.RotationEnum.mbxRTZeroDegree
obj.ShowHRText = False
'obj.ShowHRText = True
'Font
obj.Font.Name = "Arial"
obj.Font.Size = 1.75
obj.Font.Charset = 0
obj.Font.Weight = 400
obj.Font.Underline = False
obj.Font.Italic = False
obj.Font.Strikethrough = False
'Font Comment
obj.CommentFont.Name = "Tahoma"
obj.CommentFont.Size = 2
obj.CommentFont.Charset = 0
obj.CommentFont.Weight = 100
obj.CommentFont.Underline = False
obj.CommentFont.Italic = False
obj.CommentFont.Strikethrough = False
obj.SymbolMarginLeft = 150
obj.SymbolMarginRight = 0
obj.SymbolMarginTop = 0
obj.SymbolMarginBottom = 0
obj.ExportImage("C:\normorovia.bmp", MrvBarCdLib.ImageFormatEnum.mbxFormatBMP)
obj = Nothing
