Example Code

Changing the Alignment of a Standard Report in LabVIEW

Code and Documents

Attachment

When you use the Report Generation VIs to create a standard report, you are using the NIReports ActiveX class. This class includes an Alignment property that you can use to align portions of a report to the left, right, or center. This property is not exposed through the Report Generation VIs for consistency across the other report formats such as HTML. Some of the Report Generation VIs do have an alignment input but these inputs do not affect the alignment of a standard report.

This VI uses the Alignment property of the NIReports ActiveX class to change the alignment for all portions of the report appended after you call the VI. This VI works only with standard report types. If you use it with any other report type, the VI returns error 41000.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors