Data Matrix Not Big Enough S’abonner

0
Avatar
Legacy Poster

We are using a 2D datamatix barcode.  They need to be scanned from about thiry feet away.  Bartender does not allow you to make the datamatrix beyond a certain size.  I cheated and made an image of the barcode and increased the images size which works.  I was wondering if there is a way to generate an image on the fly of the barcode and insert it into the label or can I override some settings and make the actually barcode bigger.

 

On another post I found the following code but it keeps throwing errors.  The error I am up to right now is "Class not defined: OnBarcode"

10 commentaires

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

We are using a 2D datamatix barcode.  They need to be scanned from about thiry feet away.  Bartender does not allow you to make the datamatrix beyond a certain size.  I cheated and made an image of the barcode and increased the images size which works.  I was wondering if there is a way to generate an image on the fly of the barcode and insert it into the label or can I override some settings and make the actually barcode bigger.

 

On another post I found the following code but it keeps throwing errors.  The error I am up to right now is "Class not defined: OnBarcode"

Might help if I included the code I found

 

Dim datamatrix
datamatrix = New OnBarcode.Barcode.DataMatrix()
datamatrix.Data = "0123456789"
datamatrix.X = 3

' Generate Data Matrix and encode barcode to png format
datamatrix.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
datamatrix.drawBarcode("C://vbnet-datamatrix.png")

' Print Data Matrix to vb.net Bitmap object
Dim datamatrixBitmap
datamatrixBitmap = datamatrix.drawBarcode()

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

What version of BarTender are you running?

 

The code you're using seems to be from some kind of barcode component from some other vendor.  For that we cannot help you.

 

Exactly how big do you want the data matrix to be, and what data are you encoding into it?

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Well that would explain why it doesn't.  We are using 8.01

 

The one we have working right now is 3 1/4 by 3 1/4 inches.  We could even go as big as 4x4.

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Are you using the barcode feature for data matrix inside of BarTender?  You should be able to scale it to the size you want without a problem.  Attach an example label format so that we may see what you're doing.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Attached is the file I have created.  Everything in there was created from bartender.  At the moment it is just a mockup but we want that barcode to be as large as possible

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

I'm not sure about v8.01 off the top of my head, but in later versions you simply select the object then click and drag on the object handles to be whatever size you want.  Does v8.01 not allow this as I thought it did?  Perhaps you could test v10.0 to see if it better suits your needs.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

I've tried various options but every time the size is capped.  We are still fighting the upgrade battle with the various departments at the moment but if we ever do I will try.

 

You said that first bit of code is a third party thing.  How do people get third party VBS into this program?

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Better yet, is there any way through VBS to call the export and import options for the bar code.  When I make it a picture and import the image back in then I can scale it to any dimension.  I have been going through the help documents but I do not see anything.

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

The code in your example of Visual Basic (probably VBA), not VB Script.  It cannot be used within BarTender and we have zero experience in trying.  At the end of the day the whole point of such a component is to add barcoding capability to an application (MS Word, Crystal Reports etc) that doesn't support barcodes.  BarTender supports VB Script internally, not VBA, and does natively support barcodes.

 

"Better yet, is there any way through VBS to call the export and import options for the bar code."  This can be done via an external application controlling BarTender, but not from within BarTender.

 

I suggest you test v10.0, and if that works to your satisfaction, use that as leverage for getting BarTender updated.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

In the end we had a test version on site of 10.  It does everything I need.  I guess I will be taking over that computer for a while.  Thanks for the help and info.

Vous devez vous connecter pour laisser un commentaire.