Print Picture If Database Field = Y
I have a database (text file) which has multiple records. For some of the records I need a picture to be printed and not for other. I have a field in the database that determines this with a Y/N entry. I have setup the picture so that it should only print if the field = Y (using the when to print function on the picture properties).
What I get is strange, if the 1st record should print the picture (Field value = Y) then the picture prints for all records. If the 1st record should not print the picture (Field value = N) then the picture does not print on all records. So it seems to just look at the value in the 1st record and not the current record it is processing.
Assume I am doing something wrong?
Any assistance would be appreciated
-
In BarTender v10.1 SR3, that I'm using on my computer, I opened the properties of a picture object and selected the top node of the object properties. Then clicking the properties button for "Print when" I chose the "Conditionally, based on data source" option, selecting the appropriate field, the equals operator, and then the value I wanted the test to match. When printing/previewing the picture only printed for that label/record where the value of the field met my print when test.
0 -
Legacy Poster
★ BarTender Hero ★
Thanks Ian, I am using v10.1 SR2 (currently using the trial version as trying to establish if Bartender can do all we need and which version we require). I have a few days left on the trial so I will try to upgrade to SR3 and test again.
0 -
Legacy Poster
★ BarTender Hero ★
Hi Ian, I have now installed SR3. What I have found is that if I have a text object then it will print or not depending on the field content (Y/N). But if I have a Picture object then I have the same problem as in SR2 (i.e. if the 1st record in the database has Y in the field then the picture prints on all labels, if the 1st record field is N then the picture does not print on any labels). Any thoughts?
0 -
That's not the results I got when I tried this. I suggest you attach your files so we can see what you've done wrong.
0 -
Legacy Poster
★ BarTender Hero ★
Hi Ian, Files attached. The picture and IP Rating should only print when the CEApproved field is set to Y. It works for the IP Rating but not for the Picture.
0 -
Hmmm, as before all is well when previewing, but I find that I get the problem when printing. However, if you open the "Print" dialog, select the "Performance" tab and untick the, "Allow Static Objects" checkbox you'll find that the label prints correctly. I would view this as a bug with our optimization algorithm, so If not already reported, I'll submit a ticket for development to solve.
0 -
Legacy Poster
★ BarTender Hero ★
Great, unselecting the "Allow Static Objects" works - Thanks for all you help, much appreciated
0
请先登录再写评论。
评论
7 条评论