PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Operating mode
  • Principle
  • Printing the report created by the developer
  • Direct print of the table
  • 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 table.
One of the options found in this popup menu allows the user to print the table content ("Print").
Operating mode

Principle

Several cases may occur:
  • If a report was created on this table by the developer, this report is printed.
  • If no report is linked to this table, the user can choose to:
    • print the table directly.
    • 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 be automatically linked to the table and it will be proposed at run time to the user.
Notes:
  • To select "Print" from the popup menu of tables, the print libraries of the WINDEV framework are required.
  • In programming, DisableAAF associated with the aafPrintReportOnTable constant deletes the "Print" option for the specified table.In programming, AAFDisable (or DisableAAF) associated with the aafPrintReportOnTable constant deletes the "Print" option for the specified table.

Printing the report created by the developer

If a report was created on the table by the developer, the "Print" option will be used to print this report. No specific programming is required.

Direct print of the table

The direct printing of the table is available in the following cases:
  • no report was created by the developer for the table.
  • 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 is viewed in the print preview.
If the number of table rows is quite important (more than 10 000 rows), the application asks the user for confirmation (the print may be quite long and it may use a lot of memory).
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 resize operation is performed, the table will be printed on several pages if necessary.
The characteristics of the print are as follows:
  • The title of the print corresponds to the table title. The window title is used if no title was specified for the table.If no title was specified for the table, the "Report on table (AAF)" text is printed.
  • The titles of columns are printed on each page.
  • The print respects the background colors used for the different table cells.
  • The print does not respect the RTF attributes of the texts found in the table.
  • The counters, the totals, ... defined for the table are not printed. Only a counter for the number of table rows can be printed below the table. The caption corresponds to the caption defined for the counter in the window editor.
  • The date of the day 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 the columns is respected, except in the following cases:
    • merge with an invisible column
    • merge of columns that "overlay" over 2 pages.
  • The images found in the tables are printed only if their path is specified. The images found in the memos are not printed.
  • The print takes into account the writing direction specified by ..TextDirection for the window and/or for the table.
  • Versions 22 and later
    The columns defined as non exportable and non printable will not be printed (..VisibleInExportAndPrint or "Export and print" in the "General" tab of the description window of the column) .
    New in version 22
    The columns defined as non exportable and non printable will not be printed (..VisibleInExportAndPrint or "Export and print" in the "General" tab of the description window of the column) .
    The columns defined as non exportable and non printable will not be printed (..VisibleInExportAndPrint or "Export and print" in the "General" tab of the description window of the column) .

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 in a forthcoming version, the report created by the user will be taken into account at run time.
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 required version
  • Version 11
Comments
Click [Add] to post a comment