Andreas Br�ker wrote: > Hello, > > I use the XComponentLoader interface in order to load a SWriter > document. But sometimes the returned XComponent reference is null. > The documentation wrotes that a null reference will be returned if > the loading process fails. But what can cause such a failed loading > process ?
What can go wrong while loading? Unfortunately a lot. You can do some "debugging". Add an "InteractionHandler" argument to your MediaDecriptor when you load one of the documents that fail to load filled with the service com.sun.star.task.InteractionHandler Then you should get a dialog showing an error message or so or asking for additional parameters that are necessary for loading the document. You could also create you own InteractionHandler that just collects notifications, but that would a little bit work. Alternatively you can try to load the document via GUI. Every dialog that comes up shows a possible proplem for loading via API. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
