DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

repport

Hello, i'm a beginner in the use of Diadem, indeed, in the basic repport that i use to visualize the results, in the master layout i want to decrease the size of the text, so i want a script that allows to decrease automatically the size of the text when the number of characters exceeds a certain number ( 18 for exemples). is that possible? thank you

0 Kudos
Message 1 of 4
(3,162 Views)

Hi Say,

 

This is how you would do that in a script for a regular REPORT textbox object, but i don't see a way to do the same thing for a textbox object from the Master Layout.  Perhaps Walter Rick knows a secret here.

Set Sheet = Report.Sheets(1)
Set TextBox = Sheet.Objects("Text1")
IF Len(TextBox.Text) > 18 THEN
  TextBox.Font.Size = TextBox.Font.Size - 2
  Call Report.Refresh
END IF

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 4
(3,136 Views)

Hello Brad

thank you , however, i wrote that script but it doesn't work and i don't know why, do you have any idea about what i must change ?

0 Kudos
Message 3 of 4
(3,130 Views)

Hi say,

 

I think you can only use static objects in your master layout.  I have not found a way to programmatically access REPORT objects from the master layout.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(3,098 Views)