PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • Overview
  • Characteristics of the report on an Organizer control
  • Creating a report on an Organizer control from the report editor
  • Creating a report on an Organizer control from the report editor
  • Printing a report on an Organizer control
  • Printing a report on an Organizer control
  • WINDEV example
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
Report on Organizer control
Overview
A report on an Organizer control is used to directly print the information displayed in an Organizer control found:
  • in a window or page of application. This window or page must be displayed when printing the report.
  • in an internal window or an internal page:
    • The window displaying the internal window must be displayed.
    • The page displaying the internal page must be displayed.

Important

Reports & Queries cannot be used to create reports on an Organizer control. However, you have the ability to customize the reports on Organizer control created in the standard report editor (color, fonts, size, ...).
Remark: Only an Organizer report can be created on an Organizer control.
Characteristics of the report on an Organizer control
All the rows and columns found in the Organizer control are displayed in the Organizer report.
When creating the report, you have the ability to specify the number of days to display as well as the display mode of resources (in row or in column).
A report based on an Organizer control can be created from the report editor: to do so, select an Organizer report based on an Organizer control.
Once the report on Organizer control is created, you can:
  • modify the data source of report ("Data" tab of report description).
  • modify the characteristics of the organizer ("General" tab of the organizer description).
Caution: The test of a report on Organizer control cannot be run from the report editor because the window or the page containing the Organizer control must be opened. To run the test of a report on Organizer control, you must:
  • create (if necessary) a button in the window or in the page of the Organizer control. This button is used to print the report on the Organizer control (iPrintReport).
    Case of internal windows or internal pages: If the Organizer control is found in an internal window or in an internal page, we advise you to create the button in the internal window/page (and not in the host window/page).
  • run the test of the window containing the Organizer control then run the report test (via the button).
    Case of internal windows: the test must be run from the window that is hosting the internal window.
  • run the test of the page containing the Organizer control then run the report test (via the button).
    Case of internal pages: the test must be run from the page that hosts the internal page.
Creating a report on an Organizer control from the report editor
The report editor allows you to create an Organizer report based on an Organizer control.
Once the report is created, the print must be programmed in WLanguage. See "Printing a report on an Organizer control" for more details.

Creating a report on an Organizer control from the report editor

To create a report on Organizer control from the report editor:
  1. Click among the quick access buttons.
    • The window for creating a new element is displayed: click "Report" then "Report".
    • The wizard for report creation starts.
  2. Choose an "Organizer or Scheduler" report.
  3. Select "Organizer report" and enter the characteristics of the report:
    • Display mode,
    • Number of days to display,
    • Granularity of gridlines.
      See Organizer report for more details.
  4. Select the data source of the report ("From an Organizer control").
  5. Select the Organizer control on which the report will be based. Only the Organizer controls found in the windows or pages of the current project are proposed.
    Remark: If the selected control and the report do not have the same characteristics, the report editor proposes to modify the display of the report.
  6. Specify the format of sheet on which the report will be printed. The report is printed in A4 format by default.
  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.
  8. Validate the report creation.
  9. Specify (if necessary) the mode for reducing the report size:
    • Versions 19 and later
      Print the report on several pages. In this case, the end user will have to group the pages. See Multi-page print for more details.
      New in version 19
      Print the report on several pages. In this case, the end user will have to group the pages. See Multi-page print for more details.
      Print the report on several pages. In this case, the end user will have to group the pages. See Multi-page print for more details.
    • Use the landscape mode.
    • Reduce the report size. Caution: according to the reduction percentage, the printed report may become unreadable.
  10. The report currently created is displayed in the report editor.
Printing a report on an Organizer control

Printing a report on an Organizer control

A report on Organizer control must be printed from the window (or from the page) displaying the Organizer control to print. All you have to do is:
  1. Create a button in the window (or page) containing the Organizer control.
  2. Configure the destination of report print:
  3. Specify the name of report to print with iPrintReport.
Remarks:
  • If additional parameters must be passed to the report, these parameters must be indicated in the iPrintReport function, after the name of the report to be printed. See Report with parameters for more details.

Important

Under Reports & Queries, it is possible to print a report:
  • or by starting a printout ( icon).
  • or by testing the report ( icon).
Therefore, no programming is required to print the report.
Reports and Queries

WINDEV example

The information to print is in the Organizer control named "ORG_CustomerOrganizer" found in the "WIN_Customer" window.
The report to be printed is named "STATUS_AgendaClient" and is printed when you click on the Button control "BTN_Print".
In this example, the Button control click code "BTN_Print" is as follows:
// Open report viewer
iDestination(iViewer)
 
// Print the report based on "ORG_CustomerOrganizer"
iPrintReport(RPT_CustomerOrganizer)
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment