Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printer deletes queued document before printing

Karen Gomes
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I'm trying to print using the javax.print API. My code works fine when I print images. However when I try to print TXT files, my code queues the file in the printer spooler. However the printer deletes the document from the queue after dispaying a "deleting printing" status in the printers queue. I tried using different sets of flavor but nothing seems to work. Also tried all the code I could find online (that works for everyone else), but did not work fine on my printer.

here is one such code [in the reply 2 of]:
I used the smartJPrint API and that worked perfectly fine on my printer for PDF. However I do not have the luxury of using external APIs and need to sort this problem.

Pls help!!!

[ March 03, 2005: Message edited by: Karen Gomes ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic