Print Picture If Database Field = Y 关注

0
Avatar
Legacy Poster

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 

7 评论

0
Avatar
Ian Cummings
版主
评论操作 固定链接

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
Avatar
Legacy Poster
评论操作 固定链接

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
Avatar
Legacy Poster
评论操作 固定链接

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
Avatar
Ian Cummings
版主
评论操作 固定链接

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
Avatar
Legacy Poster
评论操作 固定链接

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
Avatar
Ian Cummings
版主
评论操作 固定链接

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
Avatar
Legacy Poster
评论操作 固定链接

Great, unselecting the "Allow Static Objects" works - Thanks for all you help, much appreciated

请先登录再写评论。