Closed Bug 17141 Opened 25 years ago Closed 23 years ago

printing doesn't respect "quiet" param

Categories

(Core :: Printing: Output, defect, P3)

x86
Other
defect

Tracking

()

VERIFIED WORKSFORME
mozilla1.0

People

(Reporter: buster, Assigned: rods)

References

()

Details

Attachments

(1 file)

from posting on n.p.m.embedding by test@pcioh.com (Brian Coverstone):

As I stumbling through code looking to turn off the printer dialog
box, I finally came across where it creates a nsDeviceContextSpec
object and then calls the -

>Init(PRBool aQuiet) function.
Unfortunately, under the gtk/ branch, the function
nsDeviceContextSpecGTK::Init(PRBool aQuiet) does not use use the aQuiet
variable!  That means you can't turn off the printer dialog box by
passing a value of PR_TRUE.  Ouch!  Something should be in there to
skip the call to ::UnixPrDialog(

&mPrData) if the aQuiet is set to
PR_TRUE.
Assignee: dcone → syd
Sorry for the spam, changing QA contact on printing bugs to our new printing
tester, Shrirang!
Target Milestone: M15
Moving Syd's non-PDT+ bugs to M15 to indicate that he will not have time to get
to them for Beta.
Moving Syd's non-IM bugs to M20
Target Milestone: M15 → M20
Reassigning to kevin for triage
Assignee: syd → kmcclusk
Reassigning to Waqar
Assignee: kmcclusk → waqar

what is the syntax for calling via javascript?

this is a must have !!!



IMO this is a must have for XPFE/XUL application developers 

particularly when developing custom tree/grid widget formatting routines based 
on default printer settings 

i.e. a javascript example when resolved please??
The quit parameter works on Windows.. each platform just has to respect this 
API.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
spam : changing qa to sujay (new qa contact for Printing)
QA Contact: shrir → sujay
Any target milestone release yet for javascript support?

Its been two years since this issue was first rasied

It seems that printing issues seem to have a very very low priorty. ....
.... only the QA contacts seem to change :-)

The ability to build IE like interfaces with quiet printing feature is 
essential for cross platform UI design
It's also breaking print on gtk embedding applications
bulk reassigning Waqar's bugs to Don.
Assignee: waqar → dcone
Status: ASSIGNED → NEW
Is there any chance of progress on this before 1.0 ?

I'm sure I cant be the only one waiting for the ability to emulate the IE 
browser print functionality in a XUL application.

It seems such an obvious omission especially when needing to print multiple 
documents.

What is puzzling me is that one or two bugs relating to quiet mode seem to have 
been resolved.


Can anyone explain?








In fact bug 70950 has marked this as FIXED!

Is this true and if so what is the javascript to print a specific  iframe?

The following code was suggested via a newsgroup but no one has confirmed that 
the call is valid


function quietprint() 
{
var iframe=document.getElementById("iframe");
var contentViewerFile = iframe.docShell.contentViewer.QueryInterface
(Components.interfaces.nsIContentViewerFile); contentViewerFile.Print(true, 
null, null); }

}


If it is not , should I reopen 70950?
Rod, I think this is part of the PrintSettings API work.
Reassigning to Rod.
Assignee: dcone → rods
Target Milestone: Future → mozilla1.0
Attached file This doesn't work
iframes do not appear ro have a "docshell" member.
Status: NEW → ASSIGNED
I think this test case is for a different bug.....



if this is a different bug has a bug been filed?

.... if so what bug number ??
This was fixed withthe new dialog check in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Many thanks for reply but one aspect of the bug may have been overlooked. 

The example code posted on the 10-18-2001 was intended to show how a XUL 
application could DYNAMICALLY issue a print IRRESPECTIVE of any other settings.

Can you please confirm that there is 

a) an api to switch to quiet mode WITHOUT displaying the dialog box
b) that you can switch to quiet mode WITHOUT changing the quiet mode pref 
Let's leave this closed until we get a handle on Bug 70950, then we can open 
this if necessary.
verified.
Status: RESOLVED → VERIFIED
Hi,

I've searched high and low for the 'fix' and I can't figure out how to call this
setting. Can anyone post an example? 

The attachment:"This doesn't work" doesn't work... at all. Mozilla (1.7) both
Firefox (0.9.3) report that there is no docShell in iframe. Bug 70950 is labeled
fixed but that seems to be only for XUL applications. How can one print
'silently' (no print Dialog) from Firefox or Mozilla? 
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: