PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a TreeView Table report
  • Creation
  • Notes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The report editor allows you to create "TreeView Table" reports.
The report includes a table (like the Table reports). By default, the header is printed in the Page Header block, the data rows in the Body block and the total row in the End of Document block.The report includes a table (like the Table reports). By default, the header is printed in the Page Header block, the data rows in the Body block and the total row in the End of Document block.
This table contains a treeview column: This column will display the hierarchy of report.
Example:
Treeview table report
Sources of the TreeView Table report
The sources of the TreeView Table report can be:
  • one or more data files,
  • a TreeView Table control,
  • none. In this case, the report is programmed with the WLanguage functions.
Versions 21 and later
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
Creating a TreeView Table report

Creation

To create a TreeView Table report from the report editor:
  1. Click among the quick access buttons.
    • Click "Report" in the wheel that is displayed. The window for creating a new element is displayed: click "Report" then "Report".
    • The wizard for report creation starts.
  2. Choose a "TreeView Table" report. The wizard proposes the available data sources:
    • one or more data files
    • a TreeView Table control.
    • by programming.
    • no data source.
  3. If you choose "From one or more data files", the wizard allows you to define:
    • the files that will be used as report source:
      Wizard: choosing the files
    • the items to print, their captions and their blocks:
      Wizard: choice of items
    • the calculations to perform (on the numeric items).
  4. If you choose "From a TreeView Table control", the wizard asks for the following elements:
    • the name of the TreeView Table control on which the report will be based. Only the TreeView Table controls found in the windows or pages of current project are proposed.
    • the lines to print: selected lines or all the control lines.
    • the items (columns of the TreeView Table control) to print, their captions and their blocks.
    • the calculations to perform (on the numeric items).
  5. Specify the format of the sheet on which the report will be printed. The report is printed in A4 format by default.
  6. Select the skin template to use.
  7. Type the name and title of report (name of ".WDE" file corresponding to the report). This name will be used to identify the report in your programs.
    WINDEV You also have the ability to specify whether the report can be modified by the end user in "Reports and Queries".
  8. Validate the report creation.
  9. If the generated table is too big, you have the ability to:
    • Print the table on several pages (in width). See Multi-page print for more details.
    • Use the landscape mode,
    • Reduce the table size.
  10. The report currently created is displayed in the report editor.
Note: If the report is created by programming or without data source, a report containing a table with a treeview column is created.

Notes

  • The "Data" tab in the description window of report is used to find out and modify the data source. If the report is based on:
    • data files, the different hierarchy levels are visible and modifiable.
    • a TreeView Table control, you have the ability to define the print options of the hierarchy.
  • If the report is based on a TreeView Table control:
    • WINDEVWindows Mobile ..SelectionOnly is used to find out and modify the records that will be printed in the report: print all records or the selected records only.
    • ..KeepVisibleHierarchy is used to find out and modify the print mode of hierarchy: printing the entire hierarchy or printing the hierarchy that is visible in the control.
    • ..HierarchicalDepth is used to find out the depth of the Item control that defines the hierarchy. You can for example modify the characteristics of the elements found on a given level.
    • ..ExpandedImage and ..CollapsedImage are used to find out and modify the expanded or collapsed image associated with the control that defines the hierarchy. No image is associated with the hierarchy be default.
  • The hierarchy of a control is defined in the "Link" tab of the description window of control.
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment