Print a trend chart from a button using the invoke command
Operators can print a trend chart at runtime by right-clicking the trend chart and then selecting
Print Trend
. However, you can also provide a button on the FactoryTalk View
display that prints the trend chart.Use the PrintControl method to print the current trend runtime chart, along with its accompanying line legend and current value legend. If the chart includes a white pen, it temporarily changes to black for printing.
To print a trend chart from a button using the invoke command:
- Add a button to a graphic display, and click theActiontab.
- Click the browse button next to theRelease Actionbox.
- In the right pane of the Command Wizard, clickInvoke, and then clickNext.
- From theDisplaylist, select the name of the graphic display where the trend is.
- In theObjectbox, type the name of the trend (the default name istrend1).
- In thePropertyorMethodbox, typePrintChart.
- In theMethod Parametersbox, identify the page orientation (landscape = 0, portrait = 1), and then identify the printer (print to default printer = 0, open print dialog and allow selecting a printer = 1).For example, to print a chart in portrait mode directly to the default printer, type: 1,0.
- ClickInvoke method in object.
- ClickFinish.
- ClickOKto close theButton Propertieswindow.
Provide Feedback