Download E3 User`s Manual - Elipse Software

Transcript
22.5.5 How to Create Reports Displaying Page N of M
To create a Report in which each page prints an indication of Page N of M, where N
is the current page and M is the total amount of pages, create two Texts and two
SetPoints.
These two Texts correspond to Page and of texts, which must be inserted in the
Caption property. Those two SetPoints correspond to N and M values, with the
following properties:
Field N
Name: txtPageNumber
SummaryGroup: GroupHeader1
SummaryRunning: 1 - ddSRGroup
SummaryType: 4 - ddSMPageCount
Field M
Name: txtPageCount
SummaryGroup: GroupHeader1
SummaryType: 4 - ddSMPageCount
22.5.6 How to Create Reports Printing Only Value
Average at Every Five Minutes
To do so, users must create a new group in a Report. This group has a Header and a
Footer Section. The general layout is:
PageHeader: Contains column titles
GroupHeader: Remains empty, but its DataField property is equal to
"CLng(E3TimeStamp*288)", because E3TimeStamp is the date and time of data
in Gregorian format (days since 1/1/1900), where its integer part is the
number of days and its fractional part is the hours and minutes. Multiplying
by 288 corresponds to a total of five minutes since 1/1/1900. The CLng
function converts a 32-bit integer and deletes its fractional part, so that
intermediate minutes and seconds do not display. This group is then printed
each time this number changes, that is, every five minutes. Check the
NewColumn and NewPage properties, which must be set to 0: ddNPNone
Detail: Contains SetPoints for table fields. Its Visible property must be set to
False, so that each data acquisition that composes a five-minutes average is
calculated, although not printed
GroupFooter: Contains the following fields, representing SetPoint's average:
485
Reports