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 / Pivot Table functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creates an Excel file with data from a Pivot Table control.
Example
sFichier is string

// Construit le nom du fichier
sFichier = SysDir(srAppData) + ["\"] + "StatsParPays.xls"

PVTToExcel(TCD_Statistiques, sFichier)
ShellExecute(SysDir(srAppData) + ["\"] + "StatsParPays.xls")
Syntax
<Result> = PVTToExcel(<Pivot Table control> , <XLS file> [, <Options>])
<Result>: Boolean
  • True if the file was created,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Pivot Table control>: Control name
Name of the Pivot Table control to be used.
<XLS file>: Character string
Name and full path of Excel file to create. The file is replaced with the new file if it already exists.
<Options>: Optional constant
Configuration of XLS file to create.
taColumnsTitles
(default value)
The title of the columns is inserted in the file.
taNoTitleOnly the data is copied to the file.
taWithLayoutExports the color and font of the Pivot Table control.
Remarks
  • The Excel files cannot exceed 65536 rows and 256 columns if the extension used is ".xls". This limit can be exceeded by using the ".xlsx" extension in order to create files in Excel 2007 format. Please note: in this case, older versions of Excel will need to be equipped with the "Office 2007 Compatibility Pack", which can be downloaded free of charge from the Microsoft website, in order to be able to open the generated documents.
  • The created file can be opened by Excel 97 (or later) or by OpenOffice Calc 2 (or later).
Component: wd300xls.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help