PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
Example
// Print in PDF mode
iDestination(iPDF)
// Print the report in PDF format
iPrintReport(RPT_Report1)
// Open the file
ShellExecute(iLastFile())
Reports and Queries
// 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>
Component : wd250prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment