AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Editores / Editor de reportes / Impresión en WEBDEV
  • Principle for printing in WEBDEV
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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:
Versión mínima requerida
  • Versión 10
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local