I'm using the demo version of the Barcode ActiveX Control. I can create barcodes no problem but when I export them the file contains lots of white space around the barcode. Can this be removed?
This is the code settings I'm using at the moment:
- Code: Select all
' Generate a 1D barcode
' -----------------------
Encoder1d.Symbology = 0
Encoder1d.message = " " & testur.Text
Encoder1d.Rotation = 0
Encoder1d.BarHeight = 50
Encoder1d.NarrowBarWidth = 5
Encoder1d.CommentOnTop = False
Encoder1d.CommentMarginTop = 0
Encoder1d.CommentMarginBottom = 0
Encoder1d.CommentMarginLeft = 0
Encoder1d.CommentMarginRight = 0
Encoder1d.RasterImageResolution = 300
Encoder1d.ShowHRText = False
Encoder1d.ShowComment = False
Encoder1d.BearerBars = False
Encoder1d.BorderStyle = 0
Encoder1d.BorderWidth = 0
Encoder1d.AutoSize = True
Encoder1d.AutoLabelSize = True
Encoder1d.Refresh()
lsDest = "c:\temp_barcode\shirls.jpg"
Encoder1d.ExportImage(lsDest, 1)
I have noticed that the options AutoLabelSize and AutoSize appear to have no effect to the output. So I was wondering if this was a restriction of the demo version?
thanks.
Scot.
