On 09/30/2009 11:38 PM, Wei Min Teo wrote: > > > Hi all, > > It seems that openoffice has a maximum path name of 260 chars? > > However, I think the maximum path name for windows is 32,767 and file name is > 260 in unicode. > > > > Is it possible to pass in to the loadComponentFromUrl function using a > relative path instead of an absolute path? > > Are there any other workarounds? I can only think of making a copying to a > temp file, do your work and copy back. > > Thanks. > Most of the windows API limits the maximum path to 260 chars. I have bumped into this limit many times.
There are some unicode extensions that allow for longer path names, as discussed here: http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx I have never bothered to pursue them, because although I have created path/filename combinations that exceed this, most of the other tools start failing in very bad ways (Windows explorer, command line tools, etc. ) -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.odt My Book: http://www.hentzenwerke.com/catalog/oome.htm Info: http://www.pitonyak.org/oo.php See Also: http://documentation.openoffice.org/HOW_TO/index.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
