Create Report in Labview
Create Report in Labview
Support Worldwide Technical Support and Product Information ni.com National Instruments Corporate Headquarters 11500 North Mopac Expressway Worldwide Offices Australia 03 9879 5166, Austria 0662 45 79 90 0, Belgium 02 757 00 20, Brazil 011 284 5011, Canada (Calgary) 403 274 9391, Canada (Ottawa) 613 233 5949, Canada (Qubec) 514 694 8521, Canada (Toronto) 905 785 0085, China (Shanghai) 021 6555 7838, China (ShenZhen) 0755 3904939, Denmark 45 76 26 00, Finland 09 725 725 11, France 01 48 14 24 24, Germany 089 741 31 30, Greece 30 1 42 96 427, Hong Kong 2645 3186, India 91805275406, Israel 03 6120092, Italy 02 413091, Japan 03 5472 2970, Korea 02 596 7456, Malaysia 603 9596711, Mexico 5 280 7625, Netherlands 0348 433466, New Zealand 09 914 0488, Norway 32 27 73 00, Poland 0 22 528 94 06, Portugal 351 1 726 9011, Singapore 2265886, Spain 91 640 0085, Sweden 08 587 895 00, Switzerland 056 200 51 51, Taiwan 02 2528 7227, United Kingdom 01635 523545 For further support information, see the Technical Support Resources appendix. To comment on the documentation, send e-mail to [email protected] Copyright 2001 National Instruments Corporation. All rights reserved. Austin, Texas 78759-3504 USA Tel: 512 794 0100
Important Information
Warranty
The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives notice of such defects during the warranty period. National Instruments does not warrant that the operation of the software shall be uninterrupted or error free. A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the package before any equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which are covered by warranty. National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for technical accuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to make changes to subsequent editions of this document without prior notice to holders of this edition. The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it. EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER. NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. This limitation of the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, including negligence. Any action against National Instruments must be brought within one year after the cause of action accrues. National Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty provided herein does not cover damages, defects, malfunctions, or service failures caused by owners failure to follow the National Instruments installation, operation, or maintenance instructions; owners modification of the product; owners abuse, misuse, or negligent acts; and power failure or surges, fire, flood, accident, actions of third parties, or other events outside reasonable control.
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National Instruments Corporation.
Trademarks
LabVIEW, National Instruments, and ni.com are trademarks of National Instruments Corporation. Product and company names mentioned herein are trademarks or trade names of their respective companies.
Disclaimer
Microsoft is a registered trademark of Microsoft Corporation in the United States and other countries. Use of Microsoft Corporation s trademarks does not constitute sponsorship, affiliation, or endorsement of National Instruments by Microsoft Corporation.
Contents
About This Manual
Conventions ...................................................................................................................vii Related Documentation..................................................................................................vii
Contents
Chapter 5 Executing VBA (Visual Basic) Macros from LabVIEW Chapter 6 Customizing the Report Generation Toolkit
Working with ActiveX Automation .............................................................................. 6-1 VI Architecture.............................................................................................................. 6-2 Developing Your Own VIs............................................................................................ 6-3
vi
ni.com
Conventions
The following conventions appear in this manual: The symbol leads you through nested menu items and dialog box options to a final action. The sequence FilePage SetupOptions directs you to pull down the File menu, select the Page Setup item, and select Options from the last dialog box. This icon denotes a note, which alerts you to important information. bold Bold text denotes items that you must select or click in the software, such as menu items and dialog box options. Bold text also denotes parameter names, controls and buttons on the front panel, dialog boxes, sections of dialog boxes, menu names, and palette names. Italic text denotes variables, emphasis, a cross reference, or an introduction to a key concept. This font also denotes text that is a placeholder for a word or value that you must supply. Text in this font denotes text or characters that you should enter from the keyboard, sections of code, programming examples, and syntax examples. This font is also used for the proper names of disk drives, paths, directories, programs, subprograms, subroutines, device names, functions, operations, variables, filenames and extensions, and code excerpts.
italic
monospace
Related Documentation
The following documents contain information that you might find helpful as you read this manual: LabVIEW Report Generation Toolkit for Microsoft Office Help, available by selecting HelpReport Generation Toolkit LabVIEW User Manual
vii
LabVIEW Help, available by selecting HelpContents and Index Microsoft Visual Basic Help, available on any version of the Microsoft Office CD
viii
ni.com
Reports are an essential part of a professional application. They must contain all the information that the user wants. In addition, reports must look professional and be carefully formatted. Microsoft Word (hereafter known as Word) and Microsoft Excel (hereafter known as Excel) are powerful report writers. Most users already know how to work with these tools. The applications complete ActiveX interface combined with LabVIEW ActiveX client capabilities make them appropriate options for adding report generation functionalities to LabVIEW applications. The complexity of the ActiveX interface, however, makes the development of custom applications difficult. The Report Generation Toolkit isolates the user from the object model by providing a set of flexible and easy-to-use VIs. The integration of the Word and Excel report formats into the LabVIEW Report Generation VIs makes report generation even easier.
Functions Overview
The Report Generation Toolkit is integrated into the FunctionsReport Generation palette that is part of LabVIEW. The toolkit modifies the Report Generation VIs to support Word and Excel formats as well as the standard and HTML report formats. The toolkit also includes two new subpalettes on the Report Generation palette that give the user access to lower-level Word- and Excel-specific VIs. The toolkit contains the following three categories of VIs: High-level report generation VIsThese are similar to the Report Generation VIs shipped with LabVIEW. The only difference is that they support two additional report types, Word and Excel.
1-1
Chapter 1
Word-specific VIsThe FunctionsReport GenerationWord Specific VIs palette contains four high-level VIs and four subpalettes. The high-level VIs perform basic operations. VIs in the subpalettes perform the following advanced tasks: General subpalettedocument management, search and replace, page numbering Tables subpaletteediting and formatting Word tables Graphs and Pictures subpaletteediting and formatting pictures and Microsoft graphs Advanced subpaletteformatting and macro functions
Excel-specific VIsThe FunctionsReport GenerationExcel Specific VIs palette contains four high-level VIs and four subpalettes. The high-level VIs perform basic operations. VIs in the subpalettes perform the following advanced tasks: General subpalettedocument management, search and replace, data retrieval Format subpalettespreadsheet and cell formatting Graphs and Pictures subpaletteediting and formatting of pictures and Microsoft graphs Advanced subpalettemacro functions and miscellaneous operations
1-2
ni.com
The Report Generation Toolkit includes VIs that work directly with Microsoft Word (hereafter known as Word) and Microsoft Excel (hereafter known as Excel). The VIs appear on the FunctionsReport Generation Word Specific VIs and the FunctionsReport Generation Excel Specific VIs palettes.You can use the application-specific VIs to create and edit Word documents and Excel worksheets, and to format text, tables, and pictures into Word- and Excel-based reports.
6.
Report Generation Toolkit VIs can handle several Word documents at the same time, or several Excel worksheets in the same workbook.
2-1
Chapter 2
The Word Add Document VI allows you to add new or existing documents to the documents collection, and the Excel Add Worksheet VI allows you to add new or existing worksheets to the worksheets collection. The Word Get Document VI allows you to switch from one document to the other, which you can use to edit a report consisting of several documents. The Excel Get Worksheet VI allows you to switch from one worksheet to the other within the same workbook, which you can use to edit a report consisting of several worksheets. By default, Report Generation Toolkit VIs used with Excel apply to the first worksheet of a new workbook or to the worksheet that was active when you last saved the workbook.
Inserting Text
You can use the Append Report Text VI located on the FunctionsReport Generation palette to insert text at the end of the report. You also can use the Append Report Text VI to insert text into an existing template by specifying a bookmark in the MS Office parameters cluster. Refer to Chapter 3, Creating Reports from Existing Templates, for more information about bookmarks. The Word Easy Title and Word Easy Text VIs located on the Functions Report GenerationWord Specific VIs palette also perform text insertion tasks. The Word Easy Text VI does not support bookmarks. Use the
2-2
ni.com
Chapter 2
Word Easy Text VI to access formatting attributes such as fonts, background color, text alignment, and line style.
The Excel Get Data VI is polymorphic. To ensure that the VI does not return any errors, the data type connected to the VI must be compatible with the content of the worksheet. For example, the Excel Get Data VI returns an error if you ask for a array of numbers and the worksheet contains strings. Refer to Appendix B, Polymorphic Functions, of the LabVIEW User Manual for more information about polymorphic VIs.
2-3
Chapter 2
member of the table collection. However, you can apply a Table VI to any member of the collection by specifying a table in the table index parameter.
Note
Word tables support a maximum of 63 columns. The Word Edit Cell VI can write new values into an existing table. Because this VI is polymorphic, you can insert scalars or arrays of strings or numbers. Refer to Appendix B, Polymorphic Functions, of the LabVIEW User Manual for more information about polymorphic VIs. If you specify a scalar value, the Word Edit Cell VI inserts the value into a cell set by the row and column elements of the start cluster. If the value that you specify is an array, the VI inserts the value starting from a cell set by the start cluster. You also can use the Word Edit Cell VI to insert an image into a cell. Set the polymorphic VI to accept a file path in the value parameter instead of a scalar or array. Use the Word Format Cell VI, Word Format Table VI, and Word Table Borders and Shading VI to set format attributes such as font, alignment, and shading for existing tables. These Table VIs can format individual cells, rows, columns, or entire tables, depending on the input parameter configuration. Refer to the LabVIEW Report Generation Toolkit for Microsoft Office Help for more information about these VIs. When using Table VIs, the following guidelines apply: If neither start nor end are wired, the VI formats the entire table. If start is wired but end is unwired, the VI formats the unique cell, row, or column specified by start. If neither row nor column are equal to 1, the VI formats the corresponding cell. If row is equal to 1, the VI formats the entire column. If column is equal to 1, the VI formats the entire row. If both start and end are wired, the VI formats the range of cells between start and end.
Use the Word Set Table Dimension VI to set the dimensions of the document tables. You can specify the row height and the column width individually either in inches or centimeters. Use the Word Merge Cells VI and the Word Insert Row-Column-Cell VI to merge table cells or to insert rows, columns, or cells into an existing table.
2-4
ni.com
Chapter 2
The VI in the following illustration creates a new Word document, inserts a table of numbers, and sets the table alignment to left.
The VI in the following illustration creates a new document, inserts a table of numbers, and sets the cell font style to bold if the value is greater than 0.5.
2-5
Chapter 2
2-6
ni.com
Chapter 2
All the images added to a worksheet are part of the worksheet Shapes collection. The Shapes collection also contains graphs and OLE objects. You also can insert images starting from a named range. Refer to Chapter 3, Creating Reports from Existing Templates, for more information about named ranges. The Excel Format Picture VI located on the FunctionsReport GenerationExcel Specific VIsGraphs and Pictures palette can modify the size, color, or scale of images in the Shapes collection. By default, the Excel Format Picture VI applies to the last member of the Shapes collection. You can apply the VI to any member of the collection, however, by specifying an image with the picture index parameter. You can select either the metric (centimeters) or English (inches) measurement system for the size parameters. The Shapes collection is relative to worksheets, not to workbooks. When you create or activate a worksheet, subsequent Graph and Picture VIs apply to the Shapes collection in the new worksheet. The VI in the following illustration creates an Excel workbook, inserts a picture from a file into the top left corner of the first spreadsheet, and sets the scale of the picture to 0.5.
2-7
Chapter 2
Paragraph, shading, and borders parameters are clusters that contain a large number of elements, and therefore can use a large amount of block diagram space. To conserve space on the block diagram, you can use the Indent and Spacing Constant and the Borders and Shading Constant located on the FunctionsReport GenerationWord Specific VIsAdvancedConstants palette with the Bundle by Name function located on the FunctionsCluster palette as shown in the previous illustration.
Note
2-8
ni.com
Chapter 2
The Excel Set Format VI can set the number format of cells in a worksheet. Number formats customize the way Excel displays numbers, dates, times, and strings. Refer to your Excel documentation for more information about Excel format types. The VI in the following illustration creates a new workbook, inserts an array of numbers with header strings, and sets the background color of the header to light green.
2-9
Chapter 2
The VI in the following illustration creates a new workbook, inserts an array of numbers, and formats the cells so that numbers lower than 0.5 display in blue and numbers greater than 0.5 display in red.
2-10
ni.com
Chapter 2
2-11
Generating complex and highly formatted reports is a time-consuming process. The best way to increase productivity is to create a report template containing components that are common to all reports and placeholders for the data. After you save this template, you can generate reports by opening the report template, inserting data into the placeholders, and displaying, printing, or saving the resulting report. Both Microsoft Word (hereafter known as Word) and Microsoft Excel (hereafter known as Excel) provide ways to insert placeholders into documents and worksheets and to save reusable templates. In Word, the easiest way to define placeholders is to use bookmarks. In Excel, the easiest way to define placeholders is to use named ranges.
3-1
Chapter 3
3.
Type the bookmark name you want to use and click the Add button as shown in the following dialog box. Use meaningful names to remember the significance of the bookmarks in the template.
When editing your report template, you can display bookmarks by selecting ToolsOptions in Word to open the Options dialog box. Click the View tab and select Bookmarks. The VIs that can perform insertion tasks all include the MS Office parameters cluster, which lets you specify the bookmark from which the insertion is performed. If you do not specify a bookmark, the insertion is automatically performed at the end of the document. You also can send data to a preformatted table in your template with the Word Edit Cell VI. This VI can update either individual cells or a complete range. Use the start parameter to specify the location of the cell or range to update. Use the table index parameter to specify the location of the table to update. A value of n in the table index parameter represents the (n + 1)th table of the current document. The default value of 1 represents the last table of the document. Templates can include empty graphs you can update with the Word Update Graph VI. Refer to Chapter 4, Working with Graphs, for more information about graphs.
3-2
ni.com
Chapter 3
The VI in the following illustration opens a template, updates the date and time bookmarks with new data, sends values to the last table of the template, and prints the resulting report.
3-3
Chapter 3
The VIs that can perform insertion tasks all include the MS Office parameters cluster, which lets you specify the named range from which the insertion is performed. If you do not specify a named range, the insertion is performed from the cell defined by the position cluster. The VI in the following illustration opens an existing report template, updates the date and time ranges with new values, updates a table in the template with new values, and saves the report.
3-4
ni.com
This chapter explains how to use the Report Generation Toolkit to insert, format, and update graphs from the Microsoft Graph application into Microsoft Word (hereafter known as Word) documents or Microsoft Excel (hereafter known as Excel) worksheets. The Graph and Picture VIs in the Report Generation Toolkit provide an interface to the Microsoft Graph application, which is part of the Microsoft Office package. You must install Microsoft Graph on your system to use these VIs.
4-1
Chapter 4
The Word Insert Graph VI and the Excel Insert Graph VI support all the graph types provided by Microsoft Graph. The following table explains the most commonly used graph types. Graph Type XY (Scatter) Description An xy (scatter) graph shows the relationship or degree of a relationship between the numbers in several graph data series, or plots two groups of numbers as one series of xy coordinates. The xy graph shows uneven intervals of data. The arrangement of the data on the worksheet is very important when creating an xy graph. Data must be arranged with the x values in one row or column, followed by one or more corresponding y values in the adjacent rows or columns. Note: Line Only xy graphs have the ability to scale both the x and y axes.
Line graphs show trends or changes in data over a period of time at even intervals. Although line graphs are similar to area graphs, line graphs emphasize time flow and the rate of change rather than the amount of change or magnitude of values. Column graphs show variation over a period of time or illustrate comparisons between items. Stacked and 100-percent stacked column graphs show relationships to a whole. Although column graphs are similar to bar graphs, column graphs organize categories horizontally and values vertically. Bar graphs show individual figures at a specific time or illustrate comparisons between items. Stacked and 100-percent stacked bar graphs show relationships to a whole. Although bar graphs are similar to column graphs, bar graphs organize categories vertically and values horizontally. This type of organization places more emphasis on comparisons and less emphasis on time. Three-dimensional surface graphs show a view that resembles a sheet stretched over a three-dimensional column graph. Surface graphs are useful for finding the best combinations between two sets of data. This graph can show relationships between large amounts of data that might otherwise be difficult to see. As in topographic maps, colors or patterns indicate areas that have the same value. The colors do not mark the data series. The wire frame format displays the data in black and white. The contour graph formats provide a two-dimensional view of the data from above, similar to a two-dimensional topographic map.
Column
Bar
Three-dimensional Surface
4-2
ni.com
Chapter 4
Description Pie graphs show the relationship or proportions of the parts to the whole. Pie graphs are useful for emphasizing a significant element. A pie graph always contains one data series. If you select more than one data series when you create a pie graph, only one data series displays. To display more than one data series in a round graph format, use the doughnut graph type. Area graphs show the relative importance of values over a period of time. Although area graphs are similar to line graphs, area graphs emphasize the amount of change or magnitude of values rather than time and the rate of change.
Area
Graphs, pictures, and OLE objects are members either of an Inlineshapes collection in a Word document or a Shapes collection in an Excel worksheet. Each graph in one of these collections accounts for one index value.
Formatting Graphs
You can use the VIs located on the Graphs and Pictures palettes of both the FunctionsReport GenerationWord Specific VIs and the FunctionsReport GenerationExcel Specific VIs palettes to format existing graphs. The Word Format Picture VI and the Excel Format Picture VI can set graph size or change color type. Other Graph and Picture VIs can set color attributes, modify scale, and set font attributes for existing graphs. To specify the location of a graph that you want to format, transfer the graph index number from the Inlineshapes or Shapes collection to the graph index parameter.
4-3
This chapter explains how to use the Report Generation Toolkit to execute VBA (Microsoft Visual Basic) macros from LabVIEW into Microsoft Word (hereafter known as Word) documents or Microsoft Excel (hereafter known as Excel) workbooks. For Word documents, use the VIs located on the FunctionsReport GenerationWord Specific VIs AdvancedMacros palette. For Excel workbooks, use the VIs located on the FunctionsReport GenerationWord Specific VIsAdvanced Macros palette. You can use the Word Run Macro VI and the Excel Run Macro VI to execute VBA macros from LabVIEW. The VIs can run both existing VBA macros and macros that you program to implement functionalities that the Report Generation Toolkit does not support. If the macro you want to execute requires input arguments, you can enter them into the parameters input of the VI you are using. The data type for this input is an array of variants. You must therefore convert all the input parameters passed to the macro to variants and bundle the parameters into an array. Use the To Variant function located on the Functions AdvancedData ManipulationVariant palette to convert the parameters to variants. Use the Build Array function located on the FunctionsArray palette to build the parameters into an array. If you need to retrieve an output value from a macro executed in LabVIEW, you can find this value in the return value parameter of the Word Run Macro VI or the Excel Run Macro VI. The output value is returned as a variant. You must convert the value to LabVIEW-compatible data before being used by LabVIEW. Use the Variant to Data function from the FunctionsCommunicationActiveX palette to convert the output value.
Note
Word and Excel 2000 and Excel 97 support the ability to pass data to and from the macro. Word 97 does not offer this feature.
5-1
Chapter 5
Before executing a macro from LabVIEW, make sure that the module in which the macro is defined is present either in the VBA project associated with the document or in the template on which the document is based, for example, normal.dot. If report generation starts from a Word or Excel template, you can import the module containing the macro manually into the VBA project associated with the template. Complete the following steps to import the module manually. 1. 2. 3. 4. Open the template in Word or Excel. Select ToolsMacroVisual Basic Editor. In the project window of the Visual Basic editor, right-click the template and select Import File from the shortcut menu. Click the name of the file in which the macro is defined.
The Word Import Module VI and the Excel Import Module VI can also import modules dynamically from LabVIEW. Using these two VIs, you can import modules either from a *.bas file or from a LabVIEW string that contains the module code source. To run a macro that manipulates objects from another application, set a reference to the application type library. This allows easy access to objects that use either the Word Add Reference to VB Project VI or the Excel Add Reference to VB Project VI. Refer to the Microsoft Visual Basic Help for more information on type libraries. The VI in the following illustration opens Word, creates a new document, inserts a table into the document, adds a VBA module to the document, executes the ProcessTable macro defined in this module, removes the module from the document, and saves it.
5-2
ni.com
This chapter explains how to develop and integrate custom tasks into the Report Generation Toolkit. You can create your own VIs with functionalities that are not available in the Report Generation Toolkit.
6-1
Chapter 6
2.
Use the Property and Invoke Nodes located on the Functions CommunicationActiveX palette to access and control all the objects exposed by that application. Use the Automation Close function located on the Functions CommunicationActiveX palette to release all the objects after the application reference ends.
3.
VI Architecture
The Report Generation Toolkit VIs are based on the LabVIEW Report Generation VIs. The Report Generation Toolkit extends the Report Class object to include some of the most frequently used Word and Excel objects. The New Report VI opens a reference to either Word or Excel, depending on the selected report type, and to a set of objects that are bundled into the Report Class object. Objects include documents, tables, and Inlineshapes in Word, and workbooks, worksheets, and Shapes for Excel. When you use subsequent VIs, the Report Class object can extract Word and Excel objects for modification by using LabVIEW property and invoke nodes. The VI in the following illustration obtains a reference to the Tables object in Word, and invokes the Add method to add a new table into the document.
After report generation is complete, you can use the Dispose Report VI to release all objects contained in the report class parameter.
6-2
ni.com
Chapter 6
Do not save your own VIs into vi.lib. LabVIEW overwrites these libraries when you upgrade. You also can customize tasks with the Macro VIs. Refer to Chapter 5, Executing VBA (Visual Basic) Macros from LabVIEW, for more information about Microsoft Visual Basic macros.
6-3
National Instruments Web support is your first stop for help in solving installation, configuration, and application problems and questions. Online problem-solving and diagnostic resources include frequently asked questions, knowledge bases, product-specific troubleshooting wizards, manuals, drivers, software updates, and more. Web support is available through the Technical Support section of ni.com
NI Developer Zone
The NI Developer Zone at ni.com/zone is the essential resource for building measurement and automation systems. At the NI Developer Zone, you can easily access the latest example programs, system configurators, tutorials, technical news, as well as a community of developers ready to share their own techniques.
Customer Education
National Instruments provides a number of alternatives to satisfy your training needs, from self-paced tutorials, videos, and interactive CDs to instructor-led hands-on courses at locations around the world. Visit the Customer Education section of ni.com for online course schedules, syllabi, training centers, and class registration.
System Integration
If you have time constraints, limited in-house technical resources, or other dilemmas, you may prefer to employ consulting or system integration services. You can rely on the expertise available through our worldwide network of Alliance Program members. To find out more about our Alliance system integration solutions, visit the System Integration section of ni.com
A-1
Appendix A
Worldwide Support
National Instruments has offices located around the world to help address your support needs. You can access our branch office Web sites from the Worldwide Offices section of ni.com. Branch office Web sites provide up-to-date contact information, support phone numbers, e-mail addresses, and current events. If you have searched the technical support resources on our Web site and still cannot find the answers you need, contact your local office or National Instruments corporate. Phone numbers for our worldwide offices are listed at the front of this manual.
A-2
ni.com
Glossary
Prefix mkMbookmark Inlineshapes collection named range object Shapes collection workbook worksheet Meaning millikilomegaValue 10 3 10 3 10 6
A placeholder in a Microsoft Word template from which you can insert text, numbers, tables, or pictures. All the images, graphs, OLE objects, and lines in a Microsoft Word document. A placeholder in a Microsoft Excel template from which you can insert text, numbers, tables, or pictures. A Microsoft Word or Excel element that you can program, manipulate, or control using ActiveX automation. All the images, graphs, and OLE objects in an Microsoft Excel worksheet. A Microsoft Excel file that consists of multiple worksheets. A Microsoft Excel spreadsheet, part of a workbook file, in which you can format and store data.
G-1
Index
A
ActiveX Automation, 6-1 to 6-2 advanced VIs Excel advanced VIs, 2-11 Word advanced VIs, 2-10 Append Control Image to Report VI, 2-6 Append Front Panel Image to Report VI, 2-6 Append Image to Report VI, 2-6 Append Report Text VI, 2-2 Append Table to Report VI, 2-3 Append Text to Report VI, 2-3 area graphs (table), 4-3
D
data inserting into Word reports, 2-2 to 2-3 into worksheets, 2-3 updating in existing graph, 4-3 documentation conventions used in manual, vii related documentation, vii-viii
E
Excel Add Reference to VB Project VI, 5-2 Excel Add Worksheet VI, 2-2 Excel Format Picture VI, 2-7, 4-3 Excel Get Data VI, 2-3 Excel Get Worksheet VI, 2-2 Excel Import Module VI, 5-2 Excel Insert Formula VI, 2-11 Excel Insert Graph VI, 4-1 Excel Insert Object VI, 2-11 Excel Rename Worksheet VI, 2-11 Excel reports advanced VIs, 2-11 creating new reports, 2-1 to 2-2 formatting, 2-9 to 2-10 graphs, 4-1 to 4-3 inserting and formatting images, 2-6 to 2-7 inserting data into worksheets, 2-3 named ranges, 3-3 to 3-4 Visual Basic macros, 5-1 to 5-2 Excel Run Macro VI, 5-1 Excel Send Document VI, 2-11
B
bar graphs (table), 4-2 bookmarks in Word, 3-1 to 3-3 Borders and Shading Constant (note), 2-8 borders and shading parameters (note), 2-8
C
column graphs (table), 4-2 conventions used in manual, vii creating new reports, 2-1 to 2-2 customer education, A-1 customizing Report Generation Toolkit, 6-1 to 6-3 ActiveX Automation technology, 6-1 to 6-2 developing VIs, 6-3 VI architecture, 6-2
I-1
Index
Excel Set Cell Alignment VI, 2-9 Excel Set Cell Color and Border VI, 2-9 Excel Set Cell Font VI, 2-9 Excel Set Format VI, 2-9 Excel Sort Data VI, 2-11 Excel VI Template VI, 6-3 Excel-specific VIs, 1-2
L
line graphs (table), 4-2
F
formatting Excel reports, 2-9 graphs, 4-3 images Excel reports, 2-6 to 2-7 Word reports, 2-6 Word reports, 2-8
M
Microsoft Excel reports. See Excel reports. Microsoft Visual Basic macros. See Visual Basic macros. Microsoft Word reports. See Word reports.
N
named ranges in Excel reports, 3-3 to 3-4 New Report VI, 2-1, 6-2 new reports, creating, 2-1 to 2-2 NI Developer Zone, A-1
G
graphs, 4-1 to 4-3 formatting, 4-3 inserting, 4-1 to 4-3 types of graphs supported (table), 4-2 to 4-3 updating data in existing graph, 4-3
P
pie graphs (table), 4-3
R H
high-level Report Generation VIs, 1-1 report generation. See Excel reports; Word reports. Report Generation palette, 1-1 Report Generation Toolkit customizing, 6-1 to 6-3 ActiveX Automation technology, 6-1 to 6-2 developing VIs, 6-3 VI architecture, 6-2 functions overview, 1-1 to 1-2 overview, 1-1
I
images, inserting and formatting Excel reports, 2-6 to 2-7 Word reports, 2-6 Indent and Spacing Constant (note), 2-8 inserting data Excel reports, 2-3 Word reports, 2-2 to 2-3
I-2
ni.com
Index
S
Shapes collection in worksheets, 2-7 surface graphs (table), 4-2 system integration, by National Instruments, A-1
T
tables in Word reports, 2-3 to 2-5 examples (figures), 2-5 guidelines, 2-4 Word-specific VIs, 2-3 to 2-4 technical support resources, A-1 to A-2 templates for reports bookmarks in Word, 3-1 to 3-3 named ranges in Excel, 3-3 to 3-4 text, inserting into Word reports, 2-2 to 2-3 three-dimensional surface graphs (table), 4-2 To Variant function, 5-1
V
VIs architecture of VIs, 6-2 developing your own VIs, 6-3 Excel-specific Report Generation VIs, 1-2 high-level Report Generation VIs, 1-1 Word-specific Report Generation VIs, 1-2 Visual Basic macros, 5-1 to 5-2 entering input arguments, 5-1 example (figure), 5-2 executing, 5-1 importing macro-containing module, 5-2 retrieving output values, 5-1
Word Add Reference to VB Project VI, 5-2 Word Easy Text VI, 2-2 to 2-3 Word Easy Title VI, 2-2 Word Edit Cell VI, 2-4, 3-2 Word Format Borders VI, 2-8 Word Format Cell VI, 2-4 Word Format Paragraph VI, 2-8 Word Format Picture VI, 2-6, 4-3 Word Format Table VI, 2-4 Word Format Text VI, 2-8 Word Get Document VI, 2-2 Word Import Module VI, 5-2 Word Insert Graph VI, 4-1 Word Insert Object VI, 2-10 Word Insert Row-Column-Cell VI, 2-4 Word Merge Cells VI, 2-4 Word reports advanced VIs, 2-10 bookmarks, 3-1 to 3-3 creating new reports, 2-1 to 2-2 formatting, 2-8 graphs, 4-1 to 4-3 inserting and formatting images, 2-6 inserting data and text, 2-2 to 2-3 tables, 2-3 to 2-5 Visual Basic macros, 5-1 to 5-2 Word Run Macro VI, 5-1 Word Send Document VI, 2-10 Word Set Table Dimensions VI, 2-4 Word Table Borders and Shading VI, 2-4 Word VI Template VI, 6-3 Word-specific VIs overview, 1-2 table editing and formatting, 2-3 to 2-4 Worldwide technical support, A-2
W
Web support from National Instruments, A-1 Word Add Document VI, 2-1
X
XY (scatter) graphs (table), 4-2
I-3