Re: print preview and documentation
On 02/02/2013 11:37 AM, rvj wrote: Its been a couple of years since Ive used the Mozilla libraries and some of the functionality now seems iffy For example print preview requests now generate an invalid pointer error error[Exception... Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIWebBrowserPrint.printPreview] nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: chrome://testbrowser/content/proofer.xul :: previewprint :: line 119 data: no] Tried the FAQ for print preview and along with all the other FAQ documents, they seems to be unavailable on MDN Has the calling syntax for print preview changed ? Is this just a general depreciation in support for application development? The way to use print preview API changed December 2009, so if your code is older, you'll have to update. You can look at the use of printPreview method in mxr. The basic idea is that you have original docshell and its document and call print preview so that the document gets cloned to another docshell. https://bugzilla.mozilla.org/show_bug.cgi?id=487667 has some more information. -Olli ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: print preview and documentation
many many thanks .. rvj smaug sm...@welho.com wrote in message news:09edndvwwunnyjpmnz2dnuvz_rcdn...@mozilla.org... On 02/02/2013 11:37 AM, rvj wrote: Its been a couple of years since Ive used the Mozilla libraries and some of the functionality now seems iffy For example print preview requests now generate an invalid pointer error error[Exception... Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIWebBrowserPrint.printPreview] nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: chrome://testbrowser/content/proofer.xul :: previewprint :: line 119 data: no] Tried the FAQ for print preview and along with all the other FAQ documents, they seems to be unavailable on MDN Has the calling syntax for print preview changed ? Is this just a general depreciation in support for application development? The way to use print preview API changed December 2009, so if your code is older, you'll have to update. You can look at the use of printPreview method in mxr. The basic idea is that you have original docshell and its document and call print preview so that the document gets cloned to another docshell. https://bugzilla.mozilla.org/show_bug.cgi?id=487667 has some more information. -Olli ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: print preview and documentation
On 2013-02-04 9:26 AM, Zack Weinberg wrote: On 2013-02-04 9:20 AM, rvj wrote: BTW Is there a pref that suppresses the annoying Preview Progress box .. or least are you able to move it out of the visible display area ? There isn't a pref, I misremembered. Does print.show_print_progress = false do what you want? ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: print preview and documentation
On Mon, Feb 4, 2013 at 6:55 AM, Zack Weinberg za...@panix.com wrote: On 2013-02-04 9:26 AM, Zack Weinberg wrote: On 2013-02-04 9:20 AM, rvj wrote: BTW Is there a pref that suppresses the annoying Preview Progress box .. or least are you able to move it out of the visible display area ? There isn't a pref, I misremembered. Does print.show_print_progress = false do what you want? Iirc, I tried to use that pref some time ago and I couldn't get it to do anything useful. Regards, Martijn ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform -- Martijn Wargers - Help Mozilla! http://quality.mozilla.org/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22 ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform