Bug 76946 - XPrintJob::cancelJob doesn't cancel printing
Summary: XPrintJob::cancelJob doesn't cancel printing
Status: UNCONFIRMED
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:
 
Reported: 2014-04-02 11:58 UTC by Tiago
Modified: 2020-08-07 05:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


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
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team

This NEEDINFO message was generated on: 2015-07-18
Comment 3 QA Administrators 2015-09-04 03:01:48 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO
Message generated on: 2015-09-03
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