Are you looking at the return value from Job::SendRaster?
Looks like hpijs.cpp is ignoring the return value from SendRaster. In
the main loop,
it is calling pSS->ProcessRaster and ignoring the return value. You will
have to
look at the return value and break out of the loop if you get a
JOB_CANCELED error.
Raghu 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Kajdas
Sent: Tuesday, October 23, 2007 8:41 AM
To: Suffield, David
Cc: hplip-devel@lists.sourceforge.net
Subject: [HPLIP-Devel] How to abort printing

I have an embedded system that uses HPIJS only to talk to the printer
(DeskJet D4160) using dj3320.cpp and I it is mostly working.
However, I cannot find a proper way to abort printing.
When a user presses an Escape key while printing, I set DisplayStatus to
DISPLAY_PRINTING_CANCELED and return JOB_CANCELED in ToDevice() and
BusyWait() functions which test the escape flag every time they are
called.

I do not remember all of the details now, but the printing stops but
some debugging errors are generated and/or printed on screen and it
takes a while for the printer to recover or it is not responsive at all
(blinking lights?).

Before I start bothering you with the details, I would like to find out
if what I am doing is correct and what is the proper sequence of
aborting because most likely it is my code's fault.


Anther, issue I have is that the last print line (about 10mm wide) on
the page is only done once instead of twice (?) and it appears much
lighter and the color is not completely filled in.
I tried all kinds of delays and status checking to let the printer
finish the job before ejecting, without any success.
Any ideas?

Martin

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to