It seems like it might be help to provide an implementation of nsIPrintSettings, that could also be created from script
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
XPCOM objects are implementable in JS, anyone could today implement a object that has the properties and methods that nsIPrintSettings defines and pass that from JS through XPConnect into a C++ method expecting a nsIPringSettings. I'm not sure this is something that's common enough to need a scriptable implementation, but maybe I'm wrong.
Given that the purpose of XUL is to allow rapid XP application development, it seems to me that simple scripted access to ALL printing functionality must be available for UI developers. I would have thought that simple script access to all printing apis must be essential for XUL to be become a RAD environment? My main concern/requirenment is how to issue 'transient' print command/settings via script which may or may not be required to update prefs.
Can you clarify a simple example? Assuming that orientation can be modified via nsPrintSettings, and that the default orientation is portrait, would a XUL script via a scriptable nsPrintSetting allow a document to be printed in landscape, WITHOUT changing the default setting of portrait? In otherwords is there some kind of 'transient' request option?
Priority: -- → P1
Target Milestone: mozilla1.0.1 → Future
this no works
Status: ASSIGNED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
In fact examples of how to a) turn silent printing on/off b) setting the running header and footer text (page numbering) would be more useful. Thanks
PS In other words are there features such as page numbering style (e.g. numeric, roman, etc ) which are available via nsPrintSettings but not included in the sample page setup dialog? Is silent printing one of these printsetting options and if so what is it called?
You cannot control any of these from a web page, being able to create a PrintSettings object is only available in JS for the UI. Some of this functionality will be available via CSS styling see Bug 115199. Also, being able to print silently will be available via a pref (see Bug 104501)
Status: REOPENED → RESOLVED
Last Resolved: 16 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.