ShellPrint
Previous  Top  Next

Prototype

ShellPrint(FileName)

Description

It prints a file by using the recorded application

Parameters

FileName: string that shows the file to be printed as well as its path.

Returned value

None.

Notes

None.

Example

//file name request 
File:= 'c:\dati.txt';

// It checks the file existence
Esistente:=FileExists(File);

//If file exists then…
If Esistente = True then

Begin  
// It opens the file  
ShellOpen(File);  
 
// file printin  
ShellPrint(File);  
End  
 
//If the file doesn't exist, it shows a message.
Else Applicationlog(_CurrentAgent,'The file is not found');