Kouakou,
>this has been answered by S. Berezniker. the code returns the number of job but i would like to have the number of copies to be printed.
>i have seen a kind of code in VB and uses getjob in winspool.dll
The VFP code would be pretty close th the VB code. If you have some specific problems converting the code you could post it here and other can help.