Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Set the Active Worksheet in DIAdem Report?

Primary Software: DIAdem
Primary Software Version: 9.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I have a report with multiple sheets and I want to programmatically access objects on different worksheets. How do I programmatically set the active worksheet in DIAdem Report?

Solution: You can use the GraphSheetRefSet function to set the active sheet in DIAdem Report. Attached to this KB is a sample report template and script that uses the GraphSheetRefSet function to change the line width of plots on two different sheets. In order for the template to work correctly you need to have the EXAMPLE.tdm dataset loaded. This file is located at the following path: C:\Program Files\National Instruments\DIAdem 9.1\Libr\Dat. This path will vary depending on where you installed DIAdem.

Please refer to the article "Command: GraphSheetRefSet" in the DIAdem help for more information on the GraphSheetRefSet function.



Related Links:

Attachments:


DIAdemExample.TDRDIAdemExample.VBS


Report Date: 10/11/2004
Last Updated: 10/11/2004
Document ID: 3EAECRE6

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit