ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Editors / Report editor / Printing in WEBDEV
  • Principle for printing in WEBDEV
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
When creating a report, the test of this report can be run from the report editor.
You also have the ability to include this report in your applications or in your sites. The user or web surfer can then print the report directly from a button or menu option, for example.
In the case of a WEBDEV site, the server will prepare the report in the chosen format (PDF, HTML, etc.).. Then, you will have the ability to:
  • display this report on the browser of the Web user,
  • save it on the server and offer the user to download or display it, etc.
In an Intranet site, the report can also be printed on a local printer or on a network printer connected to the server.
Principle for printing in WEBDEV
Regardless of the type of report to print, the principle for printing a report is as follows (in server code):
  1. Specify report print mode (direct print, HTML page generation, PDF file generation, etc.) with iDestination.
  2. Start the print job with iPrintReport.
  3. Then, you will have the ability to:
    • display the generated file on the computer of the Web user with FileDisplay.
    • send an email to the Web user allowing him to download the created file.
    • ...
Caution: If the print destination is an HTML, PDF, XML or RTF file, check the following points:
  • You have the rights to write into the directory where the document will be generated (the document is generated in the site directory by default).
    If you generate a report in PDF format, this file can be saved in the data directory (path returned by fDataDir)
    If you generate a report in HTML format, this file must be saved in the _WEB directory of the site (path returned by fWebDir).
  • A specific name must be used for each document generated on the server. Otherwise, several simultaneous prints would overwrite the prints already performed.
    For example, use server functions ConnectionCount or GetIdentifier to name your reports (e.g. FileName = "CustomerReport" + ConnectionOccurrence() + ".HTML").
This principle must be adapted according to the data source used in each report.
The following paragraphs show how to:
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help