The best solution I found is to have a hidden browser to store html to
be printed, this html is created from the xul document I want to print.
Everything went well but I would like to remove the file location
header included in the default printing setting.
I've been browsing in reference with no luck,
anybody here with a hint?
Thanks in advance,
Sandro
See http://www.xulplanet.com/references/elemref/ref_iframe.html, the
first user note at the bottom. Change this line
var settings = PrintUtils.getPrintSettings();
to this
var settings = PrintUtils.getPrintSettings().clone();
settings.docURL = " "; // suppress URL on printout
Other options you can modify are documented here:
http://www.xulplanet.com/references/xpcomref/ifaces/nsIPrintSettings.html
Igor Tandetnik
Sandro Rossetti
> Igor Tandetnik