borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Thanks for all, it works...)Next Topic (Many Thanks...) New Topic New Poll Post Reply
AndreaVB Forum : Printing : An example for SetJob function
Poster Message
supera
Level: Guest


icon An example for SetJob function  Archived to Disk

Hi,
I wrote this code :  
[PrtHwnd = OpenPrinter(Printer.DeviceName, hPrt, PrtStruct)
SetJob PrtHwnd, JobsDesc(0).JobId, 0, 0, JOB_CONTROL_PAUSE]
But the Job Status doesn't change...
Have I forget something?

Thanks...

03-08-2002 at 05:04 PM
| Quote Reply
Merrion
Level: VB Guru

Registered: 15-04-2002
Posts: 37
icon 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
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Printing : An example for SetJob function
Previous Topic (Thanks for all, it works...)Next Topic (Many Thanks...) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder