Re: printdialog error

Adam Fletcher <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
William,

The error means that the XUL should be opened with a call to 
window.openDialog() - which takes the arguments:

window.openDialog(filename, windowtitle, windowoptions, ...)

where ... is turned into arguments[0], arguments[1], etc. So the XUL 
probably has an onload handler that calls some javascript that expects 
to be able to use arguments[0] as a certian type of interface.... If you 
look at printdailog.js line 366, you should be able to tell what it is 
trying to QI arguments[0] into, and by that you should know what you 
need to pass in window.openDialog as argument 0.

-Adam


William JOYE wrote:
> Hello,
> 
> I would like to use my own printdialog box. I have found one in the
> XPtoolkit (printdialog.xul & printdialog.js) but when I launch this xul file
> I have the following error :
> Error window.arguments[0].QueryInterface is not a function (line 366)
> 
> Someone can help to use the printdialog ?
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.