Hiding Objects Follow

0
Avatar
Legacy Poster

Hello

 

i have a label set-up to hide objects based on a filed in my datafile. the scripting works fine when i print to a tec printer but failed to work when i print to a sato. anyone have an idea as to what im missing?

 

Thanks 

5 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Can you show us your script?

 

To hide/not print a label object you can either set its value to nothing (value = "") or from a document level VB script setting either the (Format.Objects("btDataSourceName").DoNotPrint = True or the (Format.Objects("btDataSourceName").PrintVisibility = False) depending if the object is not to print for the entire print job or for a single label/record.

0
Avatar
Legacy Poster
Comment actions Permalink

its based on every new record.
 
If Field("MH10_CM5143811711_9_14124523.Field 1") = 30 Then
Format.Objects("Text 7").Printvisibility = true
Format.Objects("Text 1").Printvisibility = true
Format.Objects("Text 2").Printvisibility = true
Format.Objects("Text 3").Printvisibility = true
Format.Objects("Text 4").Printvisibility = true
Format.Objects("Text 5").Printvisibility = true
Format.Objects("Text 6").Printvisibility = true
Format.Objects("Text 8").Printvisibility = true
Format.Objects("Text 9").Printvisibility = true
Format.Objects("Text 10").Printvisibility = true
Format.Objects("Text 11").Printvisibility = true
Format.Objects("Text 12").Printvisibility = true
Format.Objects("Text 13").Printvisibility = true
Format.Objects("Text 14").Printvisibility = true
Format.Objects("Text 15").Printvisibility = true
Format.Objects("Text 16").Printvisibility = true
Format.Objects("Text 17").Printvisibility = true
Format.Objects("Text 18").Printvisibility = true
Format.Objects("Text 20").Printvisibility = true
Format.Objects("Text 22").Printvisibility = true
Format.Objects("Bar Code 1").Printvisibility = true
Format.Objects("Bar Code 2").Printvisibility = true
Format.Objects("Barcode 3").Printvisibility = true
Format.Objects("Line 2").Printvisibility = true
Format.Objects("Line 3").Printvisibility = true
Format.Objects("Line 4").Printvisibility = true
Format.Objects("Line 5").Printvisibility = true
Format.Objects("Line 6").Printvisibility = true
Format.Objects("Line 7").Printvisibility = true
Format.Objects("Line 8").Printvisibility = true
Format.Objects("totallabels").Printvisibility = false
Format.Objects("99add").Printvisibility = false
elseif Field("MH10_CM5143811711_9_14124523.Field 1") = 98 Then
Format.Objects("Text 7").Printvisibility = false
Format.Objects("Text 1").Printvisibility = false
Format.Objects("Text 2").Printvisibility = false
Format.Objects("Text 3").Printvisibility = false
Format.Objects("Text 4").Printvisibility = false
Format.Objects("Text 5").Printvisibility = false
Format.Objects("Text 6").Printvisibility = false
Format.Objects("Text 8").Printvisibility = false
Format.Objects("Text 9").Printvisibility = false
Format.Objects("Text 10").Printvisibility = false
Format.Objects("Text 11").Printvisibility = false
Format.Objects("Text 12").Printvisibility = false
Format.Objects("Text 13").Printvisibility = false
Format.Objects("Text 14").Printvisibility = false
Format.Objects("Text 15").Printvisibility = false
Format.Objects("Text 16").Printvisibility = false
Format.Objects("Text 17").Printvisibility = false
Format.Objects("Text 18").Printvisibility = false
Format.Objects("Text 20").Printvisibility = false
Format.Objects("Text 22").Printvisibility = false
Format.Objects("Bar Code 1").Printvisibility = false
Format.Objects("Bar Code 2").Printvisibility = false
Format.Objects("Barcode 3").Printvisibility = false
Format.Objects("Line 2").Printvisibility = false
Format.Objects("Line 3").Printvisibility = false
Format.Objects("Line 4").Printvisibility = false
Format.Objects("Line 5").Printvisibility = false
Format.Objects("Line 6").Printvisibility = false
Format.Objects("Line 7").Printvisibility = false
Format.Objects("Line 8").Printvisibility = false
Format.Objects("totallabels").Printvisibility = true
Format.Objects("99add").Printvisibility = true
elseif  Field("MH10_CM5143811711_9_14124523.Field 1") = 99 Then
Format.Objects("Text 7").Printvisibility = false
Format.Objects("Text 1").Printvisibility = false
Format.Objects("Text 2").Printvisibility = false
Format.Objects("Text 3").Printvisibility = false
Format.Objects("Text 4").Printvisibility = false
Format.Objects("Text 5").Printvisibility = false
Format.Objects("Text 6").Printvisibility = false
Format.Objects("Text 8").Printvisibility = false
Format.Objects("Text 9").Printvisibility = false
Format.Objects("Text 10").Printvisibility = false
Format.Objects("Text 11").Printvisibility = false
Format.Objects("Text 12").Printvisibility = false
Format.Objects("Text 13").Printvisibility = false
Format.Objects("Text 14").Printvisibility = false
Format.Objects("Text 15").Printvisibility = false
Format.Objects("Text 16").Printvisibility = false
Format.Objects("Text 17").Printvisibility = false
Format.Objects("Text 18").Printvisibility = false
Format.Objects("Text 20").Printvisibility = false
Format.Objects("Text 22").Printvisibility = false
Format.Objects("Bar Code 1").Printvisibility = false
Format.Objects("Bar Code 2").Printvisibility = false
Format.Objects("Barcode 3").Printvisibility = false
Format.Objects("Line 2").Printvisibility = false
Format.Objects("Line 3").Printvisibility = false
Format.Objects("Line 4").Printvisibility = false
Format.Objects("Line 5").Printvisibility = false
Format.Objects("Line 6").Printvisibility = false
Format.Objects("Line 7").Printvisibility = false
Format.Objects("Line 8").Printvisibility = false
Format.Objects("totallabels").Printvisibility = true
Format.Objects("99add").Printvisibility = true
else
Format.Objects("Text 7").Printvisibility = false
Format.Objects("Text 1").Printvisibility = false
Format.Objects("Text 2").Printvisibility = false
Format.Objects("Text 3").Printvisibility = false
Format.Objects("Text 4").Printvisibility = false
Format.Objects("Text 5").Printvisibility = false
Format.Objects("Text 6").Printvisibility = false
Format.Objects("Text 8").Printvisibility = false
Format.Objects("Text 9").Printvisibility = false
Format.Objects("Text 10").Printvisibility = false
Format.Objects("Text 11").Printvisibility = false
Format.Objects("Text 12").Printvisibility = false
Format.Objects("Text 13").Printvisibility = false
Format.Objects("Text 14").Printvisibility = false
Format.Objects("Text 15").Printvisibility = false
Format.Objects("Text 16").Printvisibility = false
Format.Objects("Text 17").Printvisibility = false
Format.Objects("Text 18").Printvisibility = false
Format.Objects("Text 20").Printvisibility = false
Format.Objects("Text 22").Printvisibility = false
Format.Objects("Bar Code 1").Printvisibility = false
Format.Objects("Bar Code 2").Printvisibility = false
Format.Objects("Barcode 3").Printvisibility = false
Format.Objects("Line 2").Printvisibility = false
Format.Objects("Line 3").Printvisibility = false
Format.Objects("Line 4").Printvisibility = false
Format.Objects("Line 5").Printvisibility = false
Format.Objects("Line 6").Printvisibility = false
Format.Objects("Line 7").Printvisibility = false
Format.Objects("Line 8").Printvisibility = false
Format.Objects("totallabels").Printvisibility = false
Format.Objects("99add").Printvisibility = false
end if
0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

What type of objects don't get hidden properly when printing to the Sato printer?  Text, lines barcodes (and if so what type)?

 

Perhaps you could try disabling some of the printing performance features via the "Print" dialog under the "Performance" tab.  Does that make a difference?  Also try using non-printer rendered fonts and barcodes to see if that helps.

0
Avatar
Legacy Poster
Comment actions Permalink

NVM, works fine from inside bartender when i disable some performance settings. still doesn't work using commander tho. any idea how i would make the disabled settings are applied inside commander?

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Under the "Performance" tab the, "Use settings for all documents" is actually a user based setting.  If the Commander service runs under a different account the performance setting will not be the same.  Therefore, first select the, "Use settings for this document only" radio button, and then make other changes as needed.  When done save the BarTender document, and then restart detection in Commander to force a reload of all BarTender documents in any BarTender processes running.  As you might guess, the settings are now part of the BarTender document file, so now should print as you've defined.

Please sign in to leave a comment.