NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use API set defaultt Font Size for Report View

Solved!
Go to solution

Dear

 

As the subject, how to Use API set defaultt Font Size for Report View.

 

111.png

 

I want set "Small" as default, Thanks!

0 Kudos
Message 1 of 9
(3,792 Views)

Are you doing this in a custom UI or in the Sequence Editor?

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 9
(3,750 Views)

Yes, I build my own Custom UI by TS, can you help me?

0 Kudos
Message 3 of 9
(3,735 Views)

@TabZhang wrote:

Yes, I build my own Custom UI by TS, can you help me?


What language are you using.  Here is a picture on how to do it in LabVIEW:

reportviewfont.jpg

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 9
(3,716 Views)

Hi jiggawax

I am using C#, but "axReportView1.TextReportFont.Size" is read only, I can't set it, what should i do? thanks!

 

BR

Tab

0 Kudos
Message 5 of 9
(3,711 Views)

That seems odd because in LabVIEW I can write to it.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 9
(3,708 Views)

Also, check out this from the TestStand Help.  It talks about how to use it in C#.

 

http://zone.ni.com/reference/en-XX/help/370052R-01/tsuiref/infotopics/font_objects/

 

Cheers,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 7 of 9
(3,706 Views)
Solution
Accepted by topic author TabZhang

Based on the Help I'd say you need to create the Font object and set the properties and then assign the ReportView.TextReportFont to the newly created object.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 8 of 9
(3,704 Views)

Hi Jigg

 

Ok, Thanks for your help.

 

BR

Tab

0 Kudos
Message 9 of 9
(3,697 Views)