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 ?
> 
> 


Reply via email to