PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • Overview
  • Operating mode
  • Principle
  • Printing the report created by the developer
  • Direct printing of Table control content
  • Printing from "Reports & Queries"
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
A Table control proposes an automatic popup menu allowing the user to perform several operations on the data displayed in the control.
One of the options in this context menu allows the user to print the contents of the Table control ("Print" option).
Operating mode

Principle

Several cases may occur:
  • If a report has been created by the developer on this Table control, this report is printed.
  • If no report is linked at this Table control, the user can choose:
    • print directly the contents of the Table control.
    • start "Reports & Queries" (if this software is installed on the user computer).
Differences between run time and test mode: In test mode, "Print" proposes to print directly or to create a report on table. This report will automatically be linked to Table control and will be proposed by default to the user.
Remarks:
  • The "Print" option of the Table control context menu requires the framework WINDEV print libraries.
  • In programming, the AAFDisable (or DisableAAF) function used with the faaImprimeEtatementSurTable constant removes the "Print" option for the specified table field.

Printing the report created by the developer

If the developer has created a report on the Table control, the "Print" option will allow you to print this report directly. No specific programming is required.

Direct printing of Table control content

Direct printing of Table control content is available in the following cases:
  • the developer has not planned a report for the Table control.
  • Reports and Queries is not installed on the user computer,
  • the application cannot be used to start Reports and Queries.
The content of the Table control is directly displayed in the report viewer.
If the number of lines in the Table control is too large (more than 10,000 lines), the application asks the user for confirmation (printing can be relatively long and consume memory resources).
If necessary, the application:
  • proposes to print in landscape mode,
  • informs that all the columns will not be printed on the same page.
    In this last case, the user has the ability to resize the columns. If no resizing is performed, the contents of the Table control will be printed on several pages if necessary.
The print characteristics are as follows:
  • The title of the print corresponds to the title of the Table control. If no title has been specified for the field, the text "Report on table (FAA)" is printed.
  • The column titles are printed on each page.
  • The print respects the background colors used for the different cells found in the Table control.
  • The print does not respect the RTF attributes of the texts found in the Table control.
  • The counters, the totals, ... defined for the Table control are not printed. Only a counter of the field lines is printed below the Table control. The caption corresponds to the caption defined for the counter in the window editor.
  • Today's date is printed in the top right corner.
  • The number of the current page and the total number of pages are printed in the bottom right corner.
  • The horizontal merge of columns is respected, except in the following cases:
    • merge with an invisible column
    • merge of columns that "overlay" over 2 pages.
  • The images in the Table fields are printed only if their path is specified. The images found in the memos are not printed.
  • The printing performed takes into account the writing direction specified with the ..TextDirection property at the window and/or Table control level.
  • Versions 22 and later
    Columns defined as non-exportable and non-printable will not be printed (..VisibleInExportAndPrint property or "Export and printing" option in the "General" tab of the column description window).
    New in version 22
    Columns defined as non-exportable and non-printable will not be printed (..VisibleInExportAndPrint property or "Export and printing" option in the "General" tab of the column description window).
    Columns defined as non-exportable and non-printable will not be printed (..VisibleInExportAndPrint property or "Export and printing" option in the "General" tab of the column description window).

Printing from "Reports & Queries"

"Reports and Queries" is automatically started. The report is automatically created in "Reports and Queries". The user can format it according to his own requirements. All you have to do is save the report in order for this one to be linked to the table and to be printed.
If the developer creates a specific report for the Table control in a future version, the report created by the user will be the report taken into account at runtime.
If "Reports and Queries" is not installed on the end-user computer, it can be installed automatically by the end user.
Characteristics of the created report:
  • The created report is a "Report based on Table" report.
  • If the report is automatically created in "Reports & Queries", the merge of columns is ignored.
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment