PANTHEON™ manual

 Categories
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for 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
      [Collapse]Creating Reports
        Report Objects
        "Hello, World!" Report Example
        Basic Work with Objects
        The "Text" Object
        Displaying Expressions with the Help of the "Text" Object
        Bands
        "Subject List" Report: Aliases and Variables
        "Picture" Object
        Stretching Objects, Page Breaks and Shifting Objects
        Displaying Data in the Form of a Table
        Printing Labels
        Child Bands
        Report with Two Data Levels (Master-Detail)
        Headers and Footers of a Data Band
        Multi-Page Report
      [Expand]Groups and Aggregates
      [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]Change User
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Help
   [Expand]Messages and Warnings
   [Expand]Additional programs
   [Expand]Old products
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Expand]User Manuals for PANTHEON
[Expand]PANTHEON Web
[Expand]PANTHEON Granules
[Expand]User Site

Load Time: 703.1345 ms
print   |
Label

Displaying data in the form of table

Displaying Data in the Form of a Table

Sometimes it is necessary to display data in the form of a framed table. An example of this type of report might be a price list. Creation of this report type just requires the enabling of frames for the objects located in the data band. Let's demonstrate several variants of frames with an example.

Create a report similar to this:

clip0159

Place the “Text” objects side by side on the band and minimize the band’s height.

The first and the simplest type of table has full cell framing. To achieve this enable all frame lines (found in Frame.Typ property) for every object:

clip0160

The next type of framing draws only horizontal or only vertical cell lines, again through the Frame.Typ property:

Finally, to draw only an external frame to the table the report needs a modification:

clip0161

You can see that we have added two “Text” objects, one in the pageheader and one in the pagefooter bands. The appropriate frame lines for the objects along the edges of the data band have been enabled, resulting in the report looking like this:

clip0162

All these examples contained bands which had fixed sizes. How is it possible to display a table when the band is stretched? Let's explain how, by means of an example. Add a new field (multi-lined text from Bio.“Notes”) to our report. As you have already learnt, the “Stretch” property must be enabled both for this object and for the band in which the object is located so that the band height is altered, dependent on the size of the text in the “Text” object. The generated report looks like this:

_img104

This is a bit different from what we need - it looks nicer if the frames of the neighboring objects stretch as well. FastReport can solve this problem easily. Set the “StretchMode” property to smMaxHeight in the object inspector for all objects which are to be stretched and the FastReport core will first calculate the maximum band height and then “stretch” objects with stretch enabled to the bottom edge of the band. Because object frames stretch together with the object the report’s appearance changes:

_img105

 



Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!