Results 1 to 2 of 2

Thread: Kill a Doc from Print Queue

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55

    Post

    Hi

    Anyone knows how can I kill a Document from the printer Queue?

    Thanks!

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Check out KillDoc method of a Printer pbject:


    Syntax

    object.KillDoc

    The object placeholder represents anobject expression that evaluates to an object in the Applies To list.

    Remarks

    If the operating system's Print Manager is handling the print job (the Print Manager is running and has background printing enabled), KillDoc deletes the current print job and the printer receives nothing.

    If Print Manager isn't handling the print job (background printing isn't enabled), some or all of the data may be sent to the printer before KillDoc can take effect. In this case, the printer driver resets the printer when possible and terminates the print job.




    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

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