PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > SCAN command
SCAN command

Allows you to control a scanner and save the scanned document in different formats.

The name of the scanner must be the one returned by the LISTSCAN command. 

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('SCAN')

CHGVAR

VAR(&PARM1) VALUE('
Scanner="Scanner name"
;Type="Format in which the scanned document will be saved"

;Dest="Complete path of the scanned document"
')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

Parameters

 

 

Parameters

 

Parm1
ou
Parm2

Scanner : Scanner name. Use the LISTSCAN command to see the scanner name to use.

 

Type: Format in which the scanned document will be saved.

The different possible formats are :
- jpeg
- bmp
- png
- gif
- tiff
- pdf

 

Dest: Complete path of the scanned file.

 

 

Example

 

  LNCCMD     CMD(SCAN) PARM1('Scanner="HP LJ100 M175 +      

               Scan";Dest="C:\temp\scanB.gif";Type="gif"')  

 

 

  LNCCMD     CMD(SCAN) PARM1('Scanner="HP LJ100 M175 +      

               Scan";Dest="C:\temp\scanC.pdf";Type="pdf"')