Vb Help With Padding Left/right And Concatenation フォローする

0
Avatar
Legacy Poster

Hi All,

 

I am very new to bartender and I have a requirement for a specific data matrix barcode. There are multiple fields which need to be  padded and concatenated up to specific lengths which make up the barcode.

 

I could technically do all the transformation at the source level but doing this transformation in Bartender makes the label dummy proof.

 

For example,

 

Field 1 (Pad up to 12 characters with Spaces): Test

Field 2 (Pad up to 8 characters with Spaces): Field

 

Therefore, bartender needs to barcode this without the quotes. How can I do this in VB ?

 

"        Test   Field" 

13 コメント

0
Avatar
Legacy Poster
コメントアクション Permalink

Why are you doing this with VB?  this is standard stuff you can perform on data sources inside the properties of the object.

0
Avatar
Legacy Poster
コメントアクション Permalink

Why are you doing this with VB?  this is standard stuff you can perform on data sources inside the properties of the object.

 

I need the fields to print on the label without any transformation or padding. Then, those fields need to be padded and concatenated to construct the data matrix barcode. 

 

How can i concatenate  multiple fields in transform tab ? To my limited knowledge, i can only do that in VB in bartender. 

0
Avatar
Legacy Poster
コメントアクション Permalink

What version are you running ... can you supply a label to look at?

0
Avatar
Legacy Poster
コメントアクション Permalink

What version are you running ... can you supply a label to look at?

11.0.1.3045 (64-bit)
 
Basically, all the fields on this label need to be padded and concatenated for the data matrix. But i do need those fields as is also shown on the label. 
0
Avatar
Legacy Poster
コメントアクション Permalink

Sadly I don't have 11 installed yet.  Can you save it as 10.1 SR4.  what you are describing is doable

0
Avatar
Legacy Poster
コメントアクション Permalink

There you go. 

0
Avatar
Legacy Poster
コメントアクション Permalink

Ok ... so basically you will have the data base field on the label twice.  Once as an object that will be the human readable on the label, and a 2nd time as a data source in the QR code that can be padded using the transform tab (no idea if this tab still exists or has changed slightly in 11)

 

on the above I was assuming when you were talking about the human readable part ... you were not talking about the property of the QR barcode.  If you were talking about that, I would suggest setting that property to not displayed, and creating a 2nd object that had the exact data sources as the QR code but without the transformations (paddings) 

 

Does that help?

0
Avatar
Legacy Poster
コメントアクション Permalink

Data source in the QR code need to consist of multiple fields. 

 

Remember the Data matrix is a combination of all the database fields after they are padded up to certain lenghts. So i may have this 

 

123

abc

 

but the this is what need to be barcoded

 

'         123              abc'

0
Avatar
Legacy Poster
コメントアクション Permalink

and you should be able to transform each data source independently within the QR code so what I described should work.

0
Avatar
Legacy Poster
コメントアクション Permalink

Maybe i am not seeing where this is done or how i can do it. 

 

I can only select one field as a data source for the QR. What you are saying is in the transform tab, i can select multiple fields and do the padding? Are you able to share a sample template for this ? 

0
Avatar
Legacy Poster
コメントアクション Permalink

Maybe images are better ... In the properties of the QR code you can add multiple data sources. and each one of those data sources can have it's own transforms

 

[attachment=1969:1-6-2016 10-53-42 AM.png]

 

 

 

 

0
Avatar
Legacy Poster
コメントアクション Permalink

Maybe images are better ... In the properties of the QR code you can add multiple data sources. and each one of those data sources can have it's own transforms

 

attachicon.gif1-6-2016 10-53-42 AM.png

Ha! That is beautiful. That's exactly what i was missing. The knowledge that multiple fields can be added to the QR. 

 

Thank you so much!

0
Avatar
Legacy Poster
コメントアクション Permalink

multiple fields can be added to most objects in BarTender

ログインしてコメントを残してください。