Word Table Borders and Shading VI

LabVIEW 2018 Report Generation Toolkit for Microsoft Office Help

Edition Date: June 2018

Part Number: 370274M-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Word Tables VIs

Requires: Report Generation Toolkit

Sets the border and shading parameters of the cells specified by the start and end clusters.

By default, the VI formats the last table in the current document. Use the table index input if you want to format a specific table in the current document.

Details  Example

borders and shading sets the line style, width, and color for table borders and the background color and pattern for table cells.
outside line style sets the type of line for the outside border of the table cells.
outside color sets the color for the outside border of the table cells. The default is black.
outside line width sets the thickness of the border around the table cells.
inside line style sets the type of line for the inside border of the table cells.
inside color sets the color for the inside border of the table cells. The default is black.
inside line width sets the thickness of the inside border of the table cells.
background pattern color sets the background color of the table cells.
report in is a reference to the report whose appearance, data, and printing you want to control. Use the Create Report VI to generate this LabVIEW class object.
table index specifies the index of the table to edit. The default is –1, in which the VI modifies the last table in the current document.
Note  Graphs, tables, images, ActiveX controls, and OLE objects form a collection for each document. Each object has an index value based on the order of the objects in the document. Index values begin at 0. For example, if you insert two images into the document before you insert a graph, the index value for the graph is 2.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
start determines the range of cells that the VI will format. 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.
start row represents the row index.
start column represents the column index.
end determines the range of cells that the VI will format. 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.
end row represents the last row index of the range to format.
end column represents the last column index of the range to format.
report out is a reference to the report whose appearance, data, and printing you want to control. You can wire this output to other Report Generation VIs.
error out contains error information. This output provides standard error out functionality.

Word Table Borders and Shading Details

You can use this VI in the following ways:

  • If you wire do not wire the start and the end inputs, the VI formats the entire table.
  • If you do wire the start input but do not wire the endinput, 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 you wire both the start and the end input, the VI formats the range of cells between start and end.

Example

Refer to the Conditionally Formatted Word Table VI in the labview\examples\office\Word Reports.llb for an example of using the Word Table Borders and Shading VI.

WAS THIS ARTICLE HELPFUL?

Not Helpful