Adding border dynamically ? S’abonner

0
Avatar
Sebastien Plante

Is there a way to add border (rounded) to a text object "OnNewRecord", like we do with .TextColor ?

 

I can't seem to find a way to do this. I only want it for certain type of products.

 

Thanks !

4 commentaires

0
Avatar
Pete Thane
Actions pour les commentaires Permalien

Hi Sebastien,

I am guessing there maybe a way using a FormatObject type command but not sure how what the actual commands are. However, you could just use create two templates and use conditional printing. For example:

(my label includes a field named boxornot which will have a value or either Box or NoBox)

  • Setup your label as normal and then add a new template at the bottom and copy and paste all the fields from Tempalte1 onto Template2. 
  • On Template2 adjust the text field in question to remove the box/border.
  • Either right click on the Template2 tab at the bottom of the screen and go into the Properties or else go into the Page Setup>Templates and click on Template2 
  • Click on the button to the right of the Print When (Always) settings and amend the Conditionally, based on  Data Source or Expression (I used the latter) to match the parameters you require (mine was [boxnot] equals NoBox)
  • Then click Ok and now select template1 and repeat the process above but set to look for the opposite parameter setting. 

I hope this helps

Pete

0
Avatar
Sebastien Plante
Actions pour les commentaires Permalien

Template is very complicated, I don't want to have to manage two when I update one.

I've fixed this by adding a "box" over the text and it only appear when needed.

 

Thanks for the idea and "walktrought ! :)

0
Avatar
Pete Thane
Actions pour les commentaires Permalien

No problem, I assumed you wanted the box to be dynamic in size too but making it a fixed size and conditionally printing that you have done is probably an easier way to do it.

0
Avatar
Sebastien Plante
Actions pour les commentaires Permalien

Yeah, I wish it was dynamic, but since I only have one word (PRO) to display with this  box for now... it's okay... for now... :P

Vous devez vous connecter pour laisser un commentaire.