ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • Print characteristics
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
TablePrint (Function)
In french: TableImprime
Prints the content of the specified Table control without having to create a report based on the Table control. An AAF (Automatic Application Feature) allows the user to directly print the content of the Table control (see Automatic menu of Table controls).
TablePrint is used to configure the print job:
  • Ability to specify additional elements to be printed (date, number of pages, etc.).
  • You can use iDestination to configure the destination of the print job.
Example
// Specify the print job parameters
// Print to a PDF file named table.pdf, in portrait mode
 
// Forces the Table control print AAF to use
// the parameters of the Table control (cell color, etc.)
AAFConfigure(aafPrintReportOnTable, 1)
 
// Change the destination and the orientation.
iDestination(iGenericPDF, "./table.pdf")
iParameter(iOrientation, iOrientation_Portrait)
 
// Print the Table control (without option, everything is displayed)
TablePrint(TABLE_MyTable)
WINDEVReports and QueriesUser code (UMC)
// Specify the print job parameters:
// with preview, in landscape mode
iPreview(i100)
iParameter(iOrientation, iOrientation_Landscape)
// The COL_Column1 column is invisible
TABLE_MyTable[COL_Column1]..Visible = False
 
// Print the Table control, without the date and with the number of pages
TablePrint(TABLE_MyTable, WithAll - WithDate - WithNbPages)
Syntax
<Result> = TablePrint(<Table control> [, <Options>])
<Result>: Boolean
  • True if printed successfully,
  • False if an error occurred.
<Table control>: Control name
Name of the Table control to be used.
<Options>: Optional Integer constant (or combination of constants)
Table control print settings:
WithAllPrints the content of the Table content while taking all the options into account (corresponds to WithMultipageColumns + WithDate + WithNbRecords + WithNbPages + WithTitle)
WithDatePrints the date at the top of the page.
WithMultipageColumnsIf the Table control exceeds the page size, columns are printed over several pages.
WithNbPagesPrints the number of pages at the bottom of the page.
WithNbRecordsPrints the number of records at the end of the document. The caption used corresponds to the caption defined for the counter (in the Table control description).
WithTitlePrints the title of the Table control at the top of the page. If the title of Table control is not visible, prints the window title.
Remarks

Print characteristics

  • The printout cannot be modified: it is not possible to add other elements. Page breaks are automatically defined.
  • The total number of pages is not calculated in the following cases:
    • if the print affects more than 3000 records.
    • if the calculation of the total number of pages exceeds 4 seconds for a Table control file based on an HFSQL Client/Server data file.
  • The print characteristics are as follows:
    • If printed, the title will be the title of the Table control. The window title is used if no title was specified for the Table control.
    • The column titles are printed on each page.
    • To use the background colors used for the different cells in the Table control, call AAFConfigure with the aafPrintReportOnTable constant, as follows:
      ConfigureAAF(aafPrintReportOnTable, 1)
    • The print job does not reflect the RTF attributes of the text in the Table control.
    • The counters, totals, ... defined for the Table control are not printed. Only a counter for the number of rows found in the Table control can be printed below the control. The caption corresponds to the caption defined for the counter in the characteristics of Table control.
    • If printed, the date appears in the upper-right corner.
    • If printed, the current page number and the total number of pages are printed at the bottom right.
    • The horizontal merge of columns is kept, except in the following cases:
      • merge with an invisible column.
      • merge of columns that "overlay" over 2 pages.
    • Images in the Table control are printed only if the image paths are specified. Images in memos are not printed.
    • The document is printed using the writing direction specified with the TextDirection property at window and / or Table control level.
Component: wd290etat.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
exemplo tableprint
https://youtu.be/o22NR6vdMR8

https://windevdesenvolvimento.blogspot.com/2021/05/dicas-3320-windev-webdev-mobile.html

iPreview(ipvZoom100)
TablePrint(TABLE_cliente_wd,WithAll)
amarildo
04 May 2021
Exemplo TablePrint
//Vou Imprimir Tabela Sem gerar nenhum Relatorio

TablePrint(TABLE_tecnico)

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/06/windev-curso-relatorio-24-relatorio.html
https://www.youtube.com/watch?v=WOinD5lDYH0


De matos AMARILDO
09 Jun. 2016

Last update: 05/26/2022

Send a report | Local help