AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de impresión
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns:
  • the full name of the last file generated during the print (PDF, RTF, text, ...).
  • the list of created duplicate files.
Example
// Print in PDF mode
iDestination(iPDF)
// Print the report in PDF format
iPrintReport(RPT_Report1)
// Open file
ShellExecute(iLastFile())
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
// Configure the duplicate copies performed from the report viewer
iParameterDuplicate(iDplPrintout, "C:\Temp", "MyDuplicate_%d_%h", "MMDDYYYY", "HHMMSS")
 
// Automatically print a duplicate copy from the report viewer
iDestination(iViewer)
iPrintReport(RPT_Invoice)
 
// Browse the duplicate copies created automatically from the report viewer
ListDuplicate is string
ListDuplicate = iLastFile(iListDuplicate)
Duplicate is string
Duplicate = ExtractString(ListDuplicate, firstRank, CR)
WHILE Duplicate <> EOT
// Print the duplicate
iPrintDuplicate(Duplicate)
// Go to the next duplicate
Duplicate = ExtractString(ListDuplicate, nextRank, CR)
END
Syntax
<Result> = iLastFile([<Options>])
<Result>: Character string
Requested information.
<Options>: Optional Integer constant
Used to configure the result sent. The available constants are as follows:
iFile
(Default value)
Returns the full path of the last file generated during the print (PDF, XLS, ...).
iListDuplicateReturns the list of the last duplicate copies created during the print in the following format:
<Full path of 1st duplicate copy> + CR + ...
+ CR + <Full path of Nth duplicate copy>
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadJava This constant is not available.
Component: wd290prn.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

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