NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
RyanAsensio
Posts: 2
0 Kudos
Accepted Solution

Changing REPORT sheet in a Script

Is there any way to change the current sheet in REPORT, using a script?

 

I have 9 sheets in REPORT, each with different charts on them and am trying to update x-axis minimum and maximum values for all 9 sheets. This is part of an automated data-reporting process.

 

I am confused, because if I record the process of changing a parameter on sheet 1, and then on sheet 2, it applies the changes, sequentially, to only sheet 1. There is nothing in the script to tell DIAdem to switch the current sheet.

 

Any help would be greatly appreciated.

Member
tlahoz
Posts: 8

Re: Changing REPORT sheet in a Script

Try changing the variable "GraphSheetCurrNo", it's the active sheet.

Member
RyanAsensio
Posts: 2
0 Kudos

Re: Changing REPORT sheet in a Script

Yes this works. Thanks! Also, GrpahSheetRefSet.

Trusted Enthusiast
Brad_Turpin
Posts: 2,389
0 Kudos

Re: Changing REPORT sheet in a Script

Hi All,

 

For DIAdem versions 2012 and beyond, you have the option to address the REPORT panel with a new "Report" object, so changing the active REPORT sheet to the 5th one would look like this:

 

Call Report.Sheets(5).Activate

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page