Ръководство за PANTHEON™

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]PANTHEON упатства
  [Collapse]Guide for PANTHEON
   [Collapse]Settings
    [Expand]Subjects
    [Expand]Items
    [Expand]POS
    [Expand]Manufacturing
    [Expand]Personnel
     Calendar
    [Expand]Financials
    [Expand]Customs
    [Collapse]Program
     [Expand]Document Types
     [Collapse]Reports in PANTHEON
       Settings in Administration Panel
      [Expand]Reports Register
       Print Preview
      [Expand]Report Designer
      [Expand]Creating Reports
      [Collapse]Groups and Aggregates
        Report with Groups
        Group Features
        Line Numbering
        Aggregate Functions
        Page and Report Totals
        Using the "SysText" Object
        Multi-Level Grouping
      [Expand]Formatting and Highlighting
       Nested Reports (Subreports)
      [Expand]Specifics of Printouts in PANTHEON
      [Expand]Script
       Report Design Considerations
      Document Texts
      Delivery Methods
     [Expand]Loyalty Cards
     [Expand]Administration Panel
     [Expand]Dashboard Components
      Dashboard Reports
      Ad-hoc analysis
     [Expand]ARES
      SQL urejevalnik
    [Expand]Documentation
    [Expand]Logon
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Помощ
   [Expand]Старите продукти
   [Expand]Messages and Warnings
   [Expand]Additional programs
  [Expand]Ръководство за PANTHEON Търговия
  [Expand]Ръководство за PANTHEON Vet
  [Expand]Ръководство за PANTHEON Фермерство
 [Expand]PANTHEON потребителски ръководства
[Expand]PANTHEON Web
[Expand]PANTHEON Гранула
[Expand]Потребителски сайт

Load Time: 687,5204 ms
print   |
Label

Group Features

Group Features

Let’s look at how the group is output when the report calls for a new page:

_img127

Loking at the report, it is unclear to which client the list of orders at the top of the second page refers. FastReport allows the group header to be output on the new page (which in our case identifies the client). To do this, enable the “ReprintOnNewPage” property for the “Group header” band using the object inspector or the context menu. This will alter the report as shown:

_img128

There is another way to avoid breaking groups at page boundaries. This is to enable the “KeepTogether” property for the group header in the object inspector or context menu. Then, if the whole group doesn't fit into the free space on the output page, it is moved as a whole to a new page. In our example, appearing like this:

_img129

A lot of blank space may be left on some pages but, if possible, the group is displayed complete on one page.

The “StartNewPage” group header property allows the output of groups on separate pages. It possibly will lead to a wastage of paper but might be useful in some situations.

Reset page numbers

 The “Group header” band has a “ResetPageNumbers” property which allows us to reset page numbers when printing a group. What is it for?

Here's an example: you have created a report which puts the customer name in a group header and customer orders in the data band. Now you need to print the report and send it to all your customers, each customer getting only the pages of the report which refer to them. Unfortunately, the page numbering in the report is continuous, so a customer getting the pages numbered 50 to 52 will ask "where are the first 49 pages?". To avoid this situation you have to number to each customer's pages with its own sequence. Inside the report each group will have pages numbered from 1.

Please note: if you set “ResetPageNumbers” to True, you should also set “StartNewPage” to True, so that each group will start on a new page. To print the page number or total pages, you should use the [Page] and [TotalPages] system variables and not [Page#] and [TotalPages#].

Drill-down groups

The group header has a property called "DrillDown". If you set it to True, the group becomes interactive. This means you can click on the group header in the preview window and the group will expand (display all records in the group) or collapse (display only the header and, if ShowFooterIfDrillDown is True, the footer).

Here is an example of such a group with one expanded header:

You can control whether all groups are collapsed or expanded when the report first runs. By default a group is collapsed but you can set "ExpandDrillDown" to True if you want it expanded. You can also use the preview's context menu to expand or collapse all groups at once.



Оценете темата
Темата беше ли ви полезна?
Коментар
Вашият коментар ще бъде видим и във форума!