 |
Merrion Level: VB Guru
 Registered: 15-04-2002 Posts: 37
|
Re: An example for SetJob function Archived to Disk
quote:
[PrtHwnd = OpenPrinter(Printer.DeviceName, hPrt, PrtStruct)
SetJob PrtHwnd, JobsDesc(0).JobId, 0, 0, JOB_CONTROL_PAUSE]
The printer handle is held in hPrt rather than prtHwnd so your second line needs to be:
SetJob hPrt, JobsDesc(0).JobId, 0, 0, JOB_CONTROL_PAUSE
|
____________________________
--8<------------------------------
Free components and source code - see http://www.merrioncomputing.com/Download/index.htm for details
|
|
04-08-2002 at 03:39 PM |
|
|
|
|
 |
 |