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: 2023-09-19 03:06 UTC (History)
7 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 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
Comment 13 QA Administrators 2023-09-19 03:06:05 UTC
Dear Tiago,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

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

Warm Regards,
QA Team

MassPing-UntouchedBug