Morning Phil,
>Hi Jim,
>
>Thats great, i really appreciate your help, it works perfectly.
You're welcome.
>What i was hoping to do was to be able to select a printer in the list and provide another list of what jobs that printer has in the queue, listing the job details including the document name etc. I beleive i need to use the getjob() and encorporate the JOB_INFO_n structure somehow but i dont know where or how to do this, if you could instruct me on how to do this or point me in the right direction I would be very gratefull
>
One pointer would be to
http://www.news2news.com/vfp/?group=57&function=564 where most of the work has already been done for you. Unfortunately, member's only access to the samples. It might be worth it to you if it can save you time. Otherwise, take a closer look at your "lcbuffer" after your WS_EnumJobs API call. If there are pending jobs, it should contain what you are looking for. The JOB_INFO structures should help you decipher the content.