Bug 76946 - XPrintJob::cancelJob doesn't cancel printing
Summary: XPrintJob::cancelJob doesn't cancel printing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
4.2.2.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print
  Show dependency treegraph
 
Reported: 2014-04-02 11:58 UTC by Tiago
Modified: 2021-09-18 12:01 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Extension log. (234 bytes, text/plain)
2020-08-04 08:01 UTC, Pavel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago 2014-04-02 11:58:42 UTC
Problem description: 

I have a PrintJobListener that at JOB_STARTED event do some validations on the document and in some situations want to cancel the printing by calling cancelJob at XPrintJob Object.

Steps to reproduce:
1. Implement and attach a PrintJobListener to the current model.
2. At the printJobEvent method call cancelJob in the XPrintJob object
3. The printing process continues and isn't cancelled.

Current behavior:

Printing doesn't stop

Expected behavior:

Printing doesn't start
Comment 1 Robinson Tryon (qubit) 2015-01-15 00:13:57 UTC
(In reply to Tiago from comment #0)
> Steps to reproduce:
> 1. Implement and attach a PrintJobListener to the current model.
> 2. At the printJobEvent method call cancelJob in the XPrintJob object
> 3. The printing process continues and isn't cancelled.

Hi Tiago,
Do you have a document or code that can be used to reproduce this bug? That would help us to move forward with the report.

Status -> NEEDINFO

(Please change status -> UNCONFIRMED after you provide repro information. Thanks!)
Comment 2 QA Administrators 2015-07-18 17:36:30 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2015-09-04 03:01:48 UTC Comment hidden (obsolete)
Comment 4 Pavel 2020-08-04 06:35:39 UTC
Hello! I faced a similar problem, tell me, maybe I'm doing something wrong?
Comment 5 Pavel 2020-08-04 08:01:09 UTC
Created attachment 163925 [details]
Extension log.
Comment 6 Pavel 2020-08-04 08:03:49 UTC
Implemented the extension and added PrintJobListener.
I attach the repository https://github.com/Pashahasband/libreextension

Win 7 LO 6.2.4
Comment 8 Roman Kuznetsov 2020-11-23 19:33:42 UTC
(In reply to Pavel from comment #6)
> Implemented the extension and added PrintJobListener.
> I attach the repository https://github.com/Pashahasband/libreextension
> 
> Win 7 LO 6.2.4

Pavel, can you make a patch from your extension and merge it into LO's source code yourself?

https://wiki.documentfoundation.org/Development/GetInvolved
Comment 9 Pavel 2020-11-24 06:44:57 UTC
(In reply to Roman Kuznetsov from comment #8)
> (In reply to Pavel from comment #6)
> > Implemented the extension and added PrintJobListener.
> > I attach the repository https://github.com/Pashahasband/libreextension
> > 
> > Win 7 LO 6.2.4
> 
> Pavel, can you make a patch from your extension and merge it into LO's
> source code yourself?
> 
> https://wiki.documentfoundation.org/Development/GetInvolved

Hello, Roman! Sorry, I did not quite understand which patch you are talking about, in my example it is confirmation that it does not work ...
Comment 10 Pavel 2020-11-24 06:45:49 UTC Comment hidden (obsolete)
Comment 11 Jess Adams 2021-02-18 08:10:23 UTC Comment hidden (spam)
Comment 12 Xisco Faulí 2021-03-30 11:34:09 UTC
Moving to NEW, since Pavel confirmed it