Apache OpenOffice (AOO) Bugzilla – Issue 512
loadComponentFromUrl finds no filters
Last modified: 2003-12-06 14:52:32 UTC
Loading existing documents through the API from Java and StarBasic doesn't work in 619, an exception says the filter doesn't exist although I don't specify a filter, rather OO itself selects the filter. Exception: FilterFactory::GetByName() Specified filter not exist! (BTW: there seems to be a typo in the exception message. Maybe not found would be closer to the truth anyway, after all the filter does exist!) Sample: dim mProps() oDesk = createUnoService("com.sun.star.frame.Desktop") oDoc = oDesk.loadComponentFromUrl("C:\temp\sample.sdw", "_blank", 0, mProps()) Dietrich
It might be a filter problem.
No, the same document loads nicely if I open it with the GUI. So it seems not to be a filter problem in the sense that the Writer 5 filter can't handle this sdw file. Besides, it doesn't matter if I try to load a calc document. Therefore, to me it seems it might be a filter factory problem or the filter factory receives a garbled filter name. Or what did you mean by "filter problem"? Dietrich
The problem is that we have indeed a bug in the filter detect service; it does not work correctly if no filter name was provided as dispatch argument. If you provide a "FilterName" property with any string value ( you could use "Dummy" ), the filterdetection should work. We fixed this bug for the 627 build.
.