Liang Weike wrote: > Hello Carsten, > > I think the imported images should be stored in user's folder. In order > to get the directory I find a interface named > "XOfficeInstallationDirectories". Is it available to me? Or do you have > another specified directory to save the user's images? > Hi Liang Weike,
XOfficeInstallationDirectories is not the correct interface for you. You should use the path settings service to retrieve the folder of the user. See the following Basic script which retrieves the "UserConfig" path and extends it to create the path to store the user imported images. REM ***** BASIC ***** Sub Main oPathSettings = createUnoService( "com.sun.star.util.PathSettings" ) oUserConfigPath = oPathSettings.getPropertyValue( "UserConfig" ) oChar = Right( oUserConfigPath, 1 ) if ( oChar <> "/" ) then oUserConfigPath = oUserConfigPath + "/" end if oUserConfigPath = oUserConfigPath + "soffice.cfg/import/images" msgbox oUserConfigPath End Sub Regards, Carsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]