04-10-2017 07:06 AM
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
04-10-2017 08:31 AM
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
04-10-2017 09:03 AM
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 ?
04-11-2017 11:32 AM
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