To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=110141 Issue #|110141 Summary|FilePicker Dialog "setDisplayDirectory" ignored Component|ui Version|OOO320m12 Platform|Opteron/x86_64 URL| OS/Version|Windows 7 Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|uineedsconfirm Reported by|mogliii
------- Additional comments from mogl...@openoffice.org Mon Mar 15 15:09:35 +0000 2010 ------- Here is code that will open a filepicker. The code was adopted from http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Basic/File_Control. When running this macro (Windows 7, 64), the file picker should open with the directory "C:" as root, but instead it shows a previously used directory. On WinXP 32bit it shows the expected bahavior. =========== code ====== Sub OpenFileDialog() REM file dialog oFilePicker = CreateUnoService( "com.sun.star.ui.dialogs.FilePicker" ) REM set filter oFilePicker.AppendFilter( "All files (*.*)", "*.*" ) sFileURL = "c:" REM set display directory oFilePicker.setDisplayDirectory( sFileURL ) REM execute file dialog If oFilePicker.execute() Then sFiles = oFilePicker.getFiles() sFileURL = sFiles(0) msgbox sFileURL End If End Sub ========================= --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ui.openoffice.org For additional commands, e-mail: issues-h...@ui.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org