Bug 194574 - Kmail "Print" function always executes "Print all" instead of printing individual pages when "Options >>", "Print pages from '1' to '1' '' is selected.
Summary: Kmail "Print" function always executes "Print all" instead of printing indivi...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.11.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 18:15 UTC by Neal Makens
Modified: 2009-08-13 23:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Makens 2009-05-29 18:15:22 UTC
Version:           1.11.3 (using 4.2.3 (KDE 4.2.3), 4.2.3-2.fc10 Fedora)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.24-170.2.68.fc10.i686

How to reproduce:
1. Select an email to print in Kmail that has at least 2 pages.
2. Select "Print".
3. Select "Options >>".
4. Under "Print options", select "Print from".
5. Select the page number that one wishes to print, e.g., '1' to '1', or '2' to '2'.
6. All of the pages will print, even though only an individual page has been selected.

Expected behavior:
When "Print from" is selected, only the indicated page or pages should print.
Comment 1 Rory Curtis 2009-07-12 13:18:23 UTC
I can confirm this bug in KMail 1.11.2. 

Okular gets this right, i.e. it will only print the requested pages. So a potential workaround is to print the entire message from KMail and then print the pages you want from Okular. It's pretty annoying though.
Comment 2 John Layt 2009-07-29 00:26:24 UTC
This will be because KMail/Konqi/Kate are not page-aware applications, i.e. they don't know where the page breaks are until they paint the pages.  While there are probably ways to work around this, none have done so.  As a short term measure they should disable the Page Range selection in the dialog so as not to confuse users (I've put this on my to-do list, unless someone beats me to it).
Comment 3 John Layt 2009-08-13 23:51:29 UTC
Hmmm, not sure what's up with the SVN->BKO link, but commits 1011062 for trunk and 1011065 for 4.2 disable the From/To print range in the print dialog for KHTML and consequently for KMail so users will no longer be confused by this.  This is the best we can do for now I'm afraid.

I am working on patches to Qt to enable range printing via CUPS, but that will not be available until Qt4.6 (fingers crossed).

I'm not sure khtml would ever be able to be modified to directly support page selection, but that would be a separate wish request.