Format.object(").donotprint=True
Hello,
I have been using the .DoNotPrint in my script for while but the problem is that it it works on and off. Sometimes it works perfectly and sometimes it is horrendous. I was hoping someone might have some suggestions to nail it down.
I have a substring whose value is determined by a dropdown list and that has never been a problem for me. However, it (and others) have a box (pictures for the others) which must not print if the substring is empty.
The process in VB is:
1) Dropdown to choose product model
2) substring linked to dropdown has VB which uses cases to determine what text is printed for each model
3) Document level VB looks at specific substrings, if empty, change DoNotPrint=true, else DoNotPrint=false
Often the string will be empty and the box will be visible or another string will have a value but the picture will not print.
I have attached one of the labels that work least often.
Thanks
-
Use the Object.PrintVisibility property instead as DoNotPrint only works at the per print job level, whereas PrintVisibility can change on a per label basis.
0
Please sign in to leave a comment.
Comments
1 comment