Add a report object to the mpr – Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 222

Advertising
background image

FactoryTalk EnergyMetrix Software

222

Add a Report Object to the MPR

Adding the MPR object is the last step in placing a report element into a MPR. Use the
Add Method of the Report object to add a MPR object to a Report. Before the MPR script
adds a MPR object to the report, the object must be created, configured and populated with
data. Once an object is added to the report, it can no longer be accessed by the MPR script.

The following examples demonstrate the use of the Add method.

Dim trendChart As New TrendChart()

...

Report.Add(trendChart, 0, 0, 7.5, 7.5) ' adds a TrendChart 7.5
inches square at the upper left-had corner of the working report
area

Dim grid As New Grid()

...

Report.Add(grid, 0.5, Functions.CursorPos) ' adds a Grid to the
report 1/2 inch from the left margin at the current cursor
position

MPR Page Layout

The default MPR page is based on a letter-sized sheet in ‘portrait’ orientation. The page
margins are 0.5 inches all around. The header is 1.5 inches high and the footer is 0.5
inches high. The working report area on each page is a rectangle 7.5 inches square. All
dimensions are approximate and may vary depending on your specific printer.

Advertising