ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • Print characteristics
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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
// Spécification des paramètres d'impression
// Impression dans un PDF appelé table.pdf, en mode portrait

// Force la FAA d'impression d'un champ Table à utiliser 
// les paramètres du champ Table (couleur des cellules, ...)
AAFConfigure(aafPrintReportOnTable, 1) 

// Changement de destination et d'orientation.
iDestination(iGenericPDF, "./table.pdf")
iParameter(iOrientation, iOrientation_Portrait)

// Impression du champ Table (sans options, tout est affiché)
TablePrint(TABLE_MaTable)
WINDEVReports and QueriesUser code (UMC)
// Spécification des paramètres d'impression : 
// avec aperçu, en mode paysage
iPreview(i100)
iParameter(iOrientation, iOrientation_Landscape)
// La colonne COL_Colonne1 est invisible
TABLE_MaTable[COL_Colonne1]..Visible = False

// Impression du champ Table, sans la date et avec le nombre de pages
TablePrint(TABLE_MaTable, WithAll - WithDate - WithNbPages)
Syntax
<Result> = TablePrint(<Table control> [, <Options>])
<Result>: Boolean
  • True if printed successfully,
  • False if an error occurs.
<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 ensure that the printout respects the background colors used for the different cells in the Table control, use the AAFConfigure function with the constant faaImprimeEtatSurTable as follows:
      ConfigureAAF(aafPrintReportOnTable, 1)
    • The print job does not reflect the RTF attributes of the text in the Table control.
    • Counters, totals, etc. 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 path is 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: wd300etat.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: 03/27/2025

Send a report | Local help