Hi,
Ines Pfauch wrote:
Second:
When opening a document with OOo, the URL for loadComponentFromURL starts with "file://". Is there a difference between different operating systems for this fileprefix?
No. File URLs always start with "file://". But note that this is not simply a prefix. The rest of the URL must follow the URL rules for an absolute path: The path must start with a slash ('/'), path components are separated with a forward slash ('/') [even on windows you have to use this rather than a backslash] and many characters are considered special and have to be escaped.
Thus the windows path "C:\Documents And Settings\myname\my paper.sxw" becomes "file:///C:/Documents%20And%20Settings/myname/my%20paper.sxw". Possibly you can also use the optional 'host' part of a file URL to refer to files on the network. That is, the windows path "\\myserver\myshare\whatever" becomes "file://myserver/myshare/whatever".
If you write hardcoded file URLs in your code, this should get you started, but if you have trouble figuring it out, you really should use the conversion service others have mentioned.
HTH, Joerg
-- Joerg Barfurth Sun Microsystems - Desktop - Hamburg >>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<< Software Engineer [EMAIL PROTECTED] OpenOffice.org Configuration http://util.openoffice.org
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
