CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2001
    Posts
    1

    Visual Basic and Windows Print Manager

    Hi I haven't done much VB programming and I was just wondering if it would be possible to retrieve a list of jobs queued in Print Manager from my vb program? For instance if I wanted to check to see if a certain file was in the queue and then take some sort of action if it was?


  2. #2
    Join Date
    Mar 2000
    Posts
    145

    Re: Visual Basic and Windows Print Manager

    You'll need to use the Windows API "EnumJobs" to get that information. Go to http://www.codehound.com/vb and search for EnumJobs. You'll find lots of examples. Or send me your email address and I'll email you a complete VB project that has practically all print spool management functions you might need.

    Brent Dirks
    [email protected]


  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Visual Basic and Windows Print Manager

    See http://www.merrioncomputing.com/Prog...g/PrintJob.htm for an anootated example of EnumPrintJobs and GetJob that does all this.

    HTH,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured