ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Print functions
  • Overview
  • The report editor
  • The print functions in WLanguage
  • Principle for printing in WLanguage
  • Limitations
  • Printing in the iPhone/iPad applications
  • Printing in the Android applications
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
WINDEV, WEBDEV and WINDEV Mobile propose several print methods:
  • the report editor, that is used to create "Preset reports".
  • the print functions in WLanguage.

The report editor

The report editor is used to create printed reports (in report or label format) containing information coming from data files.
We recommend that you create the printed reports with the report editor rather than with the WLanguage functions.
AndroidAndroid Widget The reports created with the report editor are not available.

The print functions in WLanguage

However, for very specific development work, the report editor may not allow you to create the requested reports. In this case, you must use the print functions of WLanguage.
Caution: This chapter only describes the principle of WLanguage printing.
Principle for printing in WLanguage
The steps for printing in WLanguage as are follows:
Limitations
iPhone/iPad

Printing in the iPhone/iPad applications

Only the prints in PDF format are available in iOS.
If necessary, the created PDF file can be printed from the device by iPrintPDF. This function allows you to use the native system window to configure the file print.
AndroidAndroid Widget

Printing in the Android applications

Only the prints in PDF format are available in Android.
By default, if iDestination is not called before starting a print in PDF format, a "document.pdf" file will be generated in the directory of application files.
If the PDF document generated by the print functions must be opened by an external application (with ShellExecute, for example), this document must be located on the external memory of the device (e.g., SD card) to be accessible by other applications.
Example:
iDestination(iGenericPDF, CompleteDir(SysDirStorageCard()) + "document.pdf")
If necessary, the created PDF file can be printed from the device by iPrintPDF. This function allows you to print the file by using the Cloud Print service of Google.
Related Examples:
Printing by programming Unit examples (WINDEV): Printing by programming
[ + ] Operating mode of a print performed by programming (which means without using the report editor)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help