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 / Principios
  • Overview
  • Principle for printing in an iPhone/iPad application or in Universal Windows App mode
  • Limitations
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
Print report (iPhone/iPad or Android)
Overview
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. The user will have the ability to print the report from a button or from a menu option for example.
In the iPhone or iPad applications or in the applications in Universal Windows App mode, the report can be printed in PDF format only. Then, this PDF file can be printed, viewed, emailed, ...
Principle for printing in an iPhone/iPad application or in Universal Windows App mode
The principle of printing a report is very simple: a PDF file is created when the report is printed.. Then, all you have to do is open this PDF file in the appropriate software and print it on the printer configured for the computer used.
Regardless of the type of report to print, the principle for printing a report is as follows:
  1. Specify the print mode of report (generation of a PDF file) with iDestination.
  2. Start the print job in PDF format with iPrintReport.
  3. Then, you will have the ability to:
    • display the generated file on the user computer (ShellExecute).
    • iPhone/iPadIOS WidgetMac Catalyst print the generated PDF file via the iOS print system (iPrintPDF).
    • ...
Caution: Check the following points:
  • You must have the rights to write into the directory where the document will be generated.
    If you generate a report in PDF format, this file can be saved in the data directory (path returned by fDataDir).
  • Use a specific name for each generated document. Otherwise, several simultaneous prints would overwrite the prints already performed.
This principle must be adapted according to the data source used in each report.
Example:
// Print the order form
FileName = fDataDir() + [fSep()] + StringBuild("ORF_%1.PDF", OrderNumber)
iDestination(iGenericPDF, FileName)
iPrintReport(RPT_OrderForm, OrderNumber, OrderNumber)
// Check the file existence
IF fFileExist(FileName) = False THEN
	Error("The PDF file was not generated")
	RETURN
END
// Confirmation to display the PDF
IF YesNo(Yes, "Display the generated order form (PDF format)?") = Yes THEN
	// Display the generated order form
	ShellExecute(FileName)
ELSE
	iPrintPDF(FileName)
END
The following paragraphs show how to:
Limitations
The following limitations apply to reports created with the report editor in applications for iPhone/iPad or Universal Windows Apps:
  • RTF is not supported: no fields in RTF format, ...
  • Only the Chart controls created from version 17 are available.
  • The following controls are not available:
    • Edit controls.
    • HTML controls.
    • Spreadsheet controls.
    • Signature controls.
    • Organizer and Scheduler controls.
    • Gantt Chart controls.
    • Pivot Table controls.
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 02/05/2025

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