Top | Previous | Next |
Report Viewer |
Icon in toolbar:
Description The Report Viewer is the component that displays reports within Ignition. Dynamic Properties bring data from Ignition into the report. Any changes to the dynamic data automatically regenerates the report. Customization is done in the Report Designer via the customizer (Cntl+U) Users can zoom in to the report and scroll between pages with the builtin controls located at the bottom. Right clicking anywhere on a report in the Report Viewer in the Runtime will allow you to print or save the report in several formats.
Properties
Customizer The customizer for this class is the Report Designer. It lets you add, remove, and edit properties for the Report's datasets as well as create entire reports. Events
Scripting Functions
print([printerName], [showDialog]) Prompts the report to print. The optional arguments can be used to specify the name of the printer to use, and whether or not to show the user the print options dialog box.
Example: # This would prompt the user to print, showing them the print dialog box and starting with the deafult printer selected Example: # This would print to the "HP Laserjet" printer with no user interaction Example: # This would print to the default printer with no user interaction getBytesHTML(continuous) Creates an HTML byte array of the report generated.
Example: # This code would prompt the user to save the HTML bytes to a file getBytesPDF() Creates an HTML byte array of the report generated. Example: # This code would prompt the user to save the PDF bytes to a file saveAsHTML(filename, continuous) Saves the generated report as HTML to the specified filename.
saveAsPDF(filename) Saves the generated report as a PDF to the specified filename.
Saves the generated report as a PNG to the specified filename.
|