PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns:
  • the full name of the last file generated during the print (PDF, RTF, text, ...).
  • the list of created duplicate files.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 19
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Print in PDF mode
iDestination(iPDF)
// Print the report in PDF format
iPrintReport(RPT_Report1)
// Open the file
ShellExecute(iLastFile())
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)
// Configure the duplicate copies performed from the print preview
iParameterDuplicate(iDplPrintout, "C:\Temp", "MyDuplicate_%d_%h", "MMDDYYYY", "HHMMSS")

// Automatically print a duplicate copy from the print preview
iPreview()
iPrintReport(RPT_Invoice)

// Browse the duplicate copies automatically created from the preview
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:
Versions 15 and later
iFile
(Default value)
New in version 15
iFile
(Default value)
iFile
(Default value)
Returns the full path of the last file generated during the print (PDF, XLS, ...).
Versions 15 and later
iListDuplicate
New in version 15
iListDuplicate
iListDuplicate
Returns 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>
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJava This constant is not available.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Java wd230java.jar
Linux wd230prn.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment