OpenOffice save as dialog filter types

Hello,
I have the below java method that displays a OOo save as dialog .
i have an issue with filter types in this save dialog: it seems the combo box type in save dialog doesn't contain the filters (like "OpenDocument Text") i appended in java method code below . when i click on type combo box the list is empty !
can someone point me what i'm i doing wrong ?
how to force the save as dialog to display all possible OOo types in 'type ' combo box ?
thanks much
public String showSaveAsDialog() {
        String sStorePath = "";
        XComponent xComponent = null;
        try {
            // the filepicker is instantiated with the global Multicomponentfactory...
            Object oFilePicker = m_xMCF.createInstanceWithContext("com.sun.star.ui.dialogs.FilePicker", m_xContext);
            XFilePicker xFilePicker = (XFilePicker) UnoRuntime.queryInterface(XFilePicker.class, oFilePicker);
            // the defaultname is the initially proposed filename..
            xFilePicker.setDefaultName("MyExampleDocument");
            // set the initial displaydirectory. In this example the user template directory is used
            Object oPathSettings = m_xMCF.createInstanceWithContext("com.sun.star.util.PathSettings",m_xContext);
            XPropertySet xPropertySet = (XPropertySet) com.sun.star.uno.UnoRuntime.queryInterface(XPropertySet.class, oPathSettings);
            String sTemplateUrl = (String) xPropertySet.getPropertyValue("Template_writable");
            xFilePicker.setDisplayDirectory(sTemplateUrl);
            // set the filters of the dialog. The filternames may be retrieved from
            // http://wiki.services.openoffice.org/wiki/Framework/Article/Filter
            XFilterManager xFilterManager = (XFilterManager) UnoRuntime.queryInterface(XFilterManager.class, xFilePicker);
            xFilterManager.appendFilter("OpenDocument Text Template", "writer8_template");
            xFilterManager.appendFilter("OpenDocument Text", "writer8");
            xFilterManager.setCurrentFilter("OpenDocument Text");
            // choose the template that defines the capabilities of the filepicker dialog
            XInitialization xInitialize = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xFilePicker);
            Short[] listAny = new Short[] { new Short(com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION)};
            xInitialize.initialize(listAny);
            // add a control to the dialog to add the extension automatically to the filename...
            XFilePickerControlAccess xFilePickerControlAccess = (XFilePickerControlAccess) UnoRuntime.queryInterface(XFilePickerControlAccess.class, xFilePicker);
            xFilePickerControlAccess.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, (short) 0, new Boolean(true));
            xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, xFilePicker);
            // execute the dialog...
            XExecutableDialog xExecutable = (XExecutableDialog) UnoRuntime.queryInterface(XExecutableDialog.class, xFilePicker);
            short nResult = xExecutable.execute();
            // query the resulting path of the dialog...
            if (nResult == com.sun.star.ui.dialogs.ExecutableDialogResults.OK){
                String[] sPathList = xFilePicker.getFiles();
                if (sPathList.length > 0){
                    sStorePath = sPathList[0];
        } catch (com.sun.star.uno.Exception exception) {
            exception.printStackTrace();
        } finally{
            //make sure always to dispose the component and free the memory!
            if (xComponent != null){
                xComponent.dispose();
        return sStorePath;
    }

hmm i solved the issue !
the trick is to move the filter appending code after call to initialize method :
so we must append filters last thing before calling execute to show the dialog !
so this code works :
xInitialize.initialize(listAny);
            // add a control to the dialog to add the extension automatically to the filename...
            XFilePickerControlAccess xFilePickerControlAccess = (XFilePickerControlAccess) UnoRuntime.queryInterface(XFilePickerControlAccess.class, xFilePicker);
            xFilePickerControlAccess.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, (short) 0, new Boolean(true));
            xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, xFilePicker);
             // set the filters of the dialog. The filternames may be retrieved from
            // http://wiki.services.openoffice.org/wiki/Framework/Article/Filter
            XFilterManager xFilterManager = (XFilterManager) UnoRuntime.queryInterface(XFilterManager.class, xFilePicker);
            //xFilterManager.appendFilter("OpenDocument Text Template", "writer8_template");
            xFilterManager.appendFilter("OpenDocument Text", "writer8");
            xFilterManager.setCurrentFilter("OpenDocument Text");
            // execute the dialog...
            XExecutableDialog xExecutable = (XExecutableDialog) UnoRuntime.queryInterface(XExecutableDialog.class, xFilePicker);
            short nResult = xExecutable.execute();

Similar Messages

  • Nowhere to type file name in save as dialog, is this normal . . .

    Hello;
    here's the problem;
    I'm having some problems with my main worksation and I'm going to probably rebuild it from scratch
    (HDD problem & an AVG Baked registry & network stack)
    so I've started by installing AA 2.0 (Full) onto one of  my backup systems
    & will follow with AA3.0 (Upgrade) if I can verify that the system can do the job for me
    here's the problem;
    I installed AA2.0 which is needed to get AA3.0(upgrade) to install
    but I haven't activated or registered yet because I don't want to waste any activations
    if I can't use the system
    is it normal for the save as dialog to not have a place to type a file name when AA isn't activated?
    System:
    HP/Compaq DC7600
    P4HT enabled 3.2GHz
    2GB DDR2 533MHz RAM
    Lots of HDD Space on 5 HDDs
    sidebar:
    why is my insertion point moved all over the page while I type this in firefox?

    thanks for the reply:
    don't know if this some sort of a display redraw issue:
    but if I just hit enter I get the file saved as untitled.wav (which is floating in the middle of the screen not in the correct location)
    and the file ends up in "My Music Folder" (which I never use, but can't change folders either)
    -good grief I hate M$ for their My . . . crap folders
    the system is using similar Intel-GMA integrated graphics as my main workstation
    the only difference is processors and the chipset is one generation back
    my main workstation has 965ry and the backup has 945g

  • 'Save as Type' box in 'Save As' dialog box

    I recently downloaded 'Rocket PDF' and now if I try to save any PDF. document, the only choices in the 'save as type' box are 'Rocket PDF' or 'All files'. No more 'Adobe Reader PDF. appears as a choice. I uninstalled 'Rocket PDF' and in the 'Default changes' I put 'Adobe Reader as the default to open 'PDF.'. Still, the only choices on the 'save as type ' are 'Rocket PDF' or 'All files'! How do I get Adobe Reader PDF' back as a choice in the 'save as type' box and delete 'Rocket PDF' as a choice?

    Sorry I wasn't clear! When I try to save a 'PDF' file the "save as" dialog box opens. At the bottom the 'file name'is listed and below that it says, "save as type". You then pick what file type you want, like Adobe Reader for PDF. It used to say Adobe Reader as one of the choices but when I downloaded "Rocket PDF" it only says "Rocket PDF or "all files" as the only choices to save the document, no more Adobe Reader as a choice. I have deleted Rocket PDF and under 'default programs (Start button) I have set the "Pdf. files to open with Adobe Reader. Rocket PDF is still listed or' all files', nothing else! How can I get Adobe Reader as a choice back in the 'save as type' box?
    Thanks for any help.

  • Prompting a "Save As" dialog for an accepted mime type

    Hi ,
    I am using the following code to prompt a "Save As" dialog bod for an xls file:
    response.setHeader("Content-disposition","attachment; filename=test.xls");
    This does work, it prompts the save as dialog box with the name "test.xls" if i click on save. However if i click on open, it displays an error saying the file could not be found.
    Any idea how to specify a custom file name for an accepted mime type?
    Thanks in advance

    Ok let me try & be more clear.
    I have a JSP page. In this page there is an "Create Excel" link. When this link is clicked, the JSP dynamically creates the data. Then the following code:
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-disposition","attachment; filename=test.xls");
    This causes the file save dialog box to be created. This dialog box has "open" & "save" options.
    When the save option is clicked, the user is prompted to save a file named test.xls. However if the user clicks on the "Open" dialog box, then the file is not opened,i get an error message saying the file does not exist.
    If i dont specify the
    response.setHeader("Content-disposition","attachment; filename=test.xls");
    Then the file save dialog box displays a default filename which is the same as name of my servlet. This works for both Open as well as save options.
    I hope i have not confused you further..:)
    Please help!

  • Invoking a save as dialog box for known mime type

    What i need is, when the user clicks on the link to download the file it has to open up the standard file save as / open dialog box. I tried using the Content Disposition method of doing it as specified in previous posts but it prompts the save as dialog box as soon as the page loads. I don't want to do that way. i want the dailog box to appear only on clicking the <a href> link.My servlet code which writes out the html is given below. when the user clicks on the sane link gicen in my code, he should be able to save the image onto his local disk. please let me know how can this be done?
    package JRclient;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class totalnorm_zoom extends HttpServlet{
         Rconnection c;
         public void doGet(HttpServletRequest request,HttpServletResponse response)
         throws ServletException, IOException
              try{               
                   c=new Rconnection();
                   c.voidEval("data<-read.table(\"table50.txt\",header=TRUE,sep=\"\t\")");
                   c.voidEval("totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x[[1]];y1<-scale*y[[1]];plot(x1,y1,xlab=xlab,ylab=ylab,col=6,col.lab=4);}");
                   c.voidEval("jpeg(\"plot.jpg\")");
                   String param1=request.getParameter("row");
                   String param2=request.getParameter("col");
                   int row=Integer.valueOf(param1).intValue();
                   int col=Integer.valueOf(param2).intValue();
                   c.voidEval("totnorm(data["+row+"],data["+col+"])");
                   c.voidEval("dev.off()");
                   c.close();
                   PrintWriter out=response.getWriter();
                   response.setContentType("text/html");
                   out.println("<html><head></head><body><form><img src=\"C:\\Program Files\\R\\rw2011\\bin\\plot.jpg\">"+"<center><a href=\"http://localhost/R/rw2011/bin/plot.jpg\">Save</a></form></body></html>");
                   out.close();
              catch (RSrvException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }

    Where did you get this command from? There's no such thing in Acrobat
    JavaScript as a Save object or an execevent method.
    Also, there's no need to save a file in a batch process. It happens
    automatically. If you really want to do it, use the saveAs method of the
    Document object. Have a look at the reference files to see how it's done.

  • Blank page shown instead of Open/Save As dialog box-CSV file download in IE

    I am migrating an application hosted earlier on Oracle 9iAS (9.0.3.1 BP1) to OracleAS 10g (10.1.3) with Struts 1.2.9. While the below JSP code worked for the earlier s/w stack when accessed using IE 5.5 SP2 or above, a blank page is displayed with the new s/w stack. What I mean by "worked earlier" is this. A "Open/Save As" dialog box would appear. Trying to "Open" would open a new IE window launching MS Excel and displaying correct data. Trying to "Save As" would display correct filename and extension in the dialog box.
    <%@page autoFlush="false" contentType="application/x-filler"%>
    <%
    try
    String fileName = "ABC.CSV";
    String strData = "A,B,C";
    response.setContentLength(strData.length());
    response.setHeader("Content-Type","application/octet-stream");
    response.setHeader("Content-Disposition","inline;filename="+fileName);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(strData.getBytes(), 0, strData.getBytes().length);
    ouputStream.flush();
    ouputStream.close();
    catch(Exception e)
    %>
    I tried some changes listed below:
    1. Deliberately introduced compilation errors in the JSP code.
    2. Changed contentType="application/x-filler" to various MIME types like application/x-download, application/vnd.ms-excel, removing it altogether.
    3. Commented out response.setHeader("Content-Type","application/octet-stream") and also tried other MIME types related to CSV/Excel.
    4. Changed Content-Disposition from inline to attachment.
    Each of the above resulted in an unacceptable behaviour compared with the earlier state:
    1. Blank page shown as if nothing was happening even in case of deliberate incorrect JSP syntax.
    2. Dialog box did show up with some combinations. But on trying to "Open" or "Save As", the dialog box shows up a second time. Then while trying to "Open", the contents get opened either inline or in MS Excel but with some additional garbage data like source file name.jsp etc. While trying to "Save As" the file name and extension take on the pattern <URL_Pattern>.htm where URL_Pattern would be "DOWNLOAD_ACTION.do".
    Some other information:
    1. This code works when accessed from desktop local container (Win 2000) but not when deployed on Unix env (HP-UX B.11.11.0109).
    2. Latest patchsets are installed for IE.
    3. The existing application is designed to work for ONLY IE 5.5 SP2 or above, so I haven't tried with other browsers. I have tried both IE 5.5 SP2 and 6.0 SP1.
    Any help in this regard will be highly appreciated.
    Thanks a lot for your valuable time..

    I have made it to work with the below changes:
    1. Changed the URL pattern for <filter-mapping> for *.jsp to /*.jsp
    2. Added <dispatcher>REQUEST</dispatcher> and <dispatcher>FORWARD</dispatcher>
    3. Everything else (code-wise) is as before.
    Because of these changes, the filter, wherein some headers are being added to the response, is being invoked appropriately now.
    Thanks for you time and suggestion though...

  • Suggest a filename extension in a save file dialog

    Hello guys,
    does any of you know, how to suggest the user a certain filename extension in a save file dialog?
    I'm using both the normal save file dialog:
         javax.swing.JFileChooser.showSaveDialog,
    and the Java Web Start save file dialog:
         javax.jnlp.FileSaveService.saveFileDialog.
    For both ways I seem not to be able to suggest the user a certain extension for the filename.
    For the normal dialog, I call setFileFilter on the JFileChooser instance.
    The filter shows up in the dialog, and is used by default, but when the user types a name and approves, the returned filename does not have the extension added.
    Of course I can add the extension programmaticaly, but not when inside the JAWS sandbox.
    For the JAWS dialog, I pass an array containing my extension, but it is ignored as if I didn't specify any extensions. The API specs already say that this parameter "might be ignored by the JNLP Client".
    So how to tell the user what extension to use?
    More people must have encountered this problem.
    I'm making an application that saves and opens xml files and exports html files.
    I'm using this code to test the behavior:import java.io.ByteArrayInputStream;
    import java.io.File;
    import javax.jnlp.FileContents;
    import javax.jnlp.FileSaveService;
    import javax.jnlp.ServiceManager;
    import javax.jnlp.UnavailableServiceException;
    import javax.swing.JFileChooser;
    import javax.swing.filechooser.FileFilter;
    public class ChooseFile
        static final String[] EXTENSIONS = { "xml" };
        static final String DESCRIPTION = "XML files";
        public static void main(String[] args)
         try {
             ServiceManager.lookup("javax.jnlp.FileOpenService");
             // we're running with JAWS
             System.out.println("JAWS filechooser:");
             System.out.println(choose_JAWS());
         catch (UnavailableServiceException x)
             // we're NOT running with JAWS
             System.out.println("normal filechooser:");
             System.out.println(choose_normal());
        static String choose_normal()
         JFileChooser fc = new JFileChooser();
         fc.setFileFilter(new CustomFileFilter(EXTENSIONS, DESCRIPTION));
         if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(null))
             return "selected " + fc.getSelectedFile().getName();
         else
             return "cancelled";
        static String choose_JAWS()
         try {
             FileSaveService fos = (FileSaveService)ServiceManager.lookup(
                         "javax.jnlp.FileSaveService");
             ByteArrayInputStream stream = new ByteArrayInputStream(new byte[] {});
             FileContents fc = fos.saveFileDialog(null, EXTENSIONS, stream, null);
             if (fc != null)
              return "selected " + fc.getName();
             else
              return "cancelled";
         } catch (Exception x)
             x.printStackTrace();
            return "";
    class CustomFileFilter extends FileFilter
        String[] extensions;
        String description;
        public CustomFileFilter(String[] extensions, String description)
         this.extensions = extensions;
         this.description = description;
        public boolean accept(File f)
         if (f.isDirectory())
             return true;
         String extension = getExtension(f);
            if (extension == null)
                return false;
         for (int i=extensions.length; i-->0; )
             if (extension.equals(extensions))
              return true;
         return false;
    public String getDescription()
         return description;
    private String getExtension(File f)
    String ext = null;
    String s = f.getName();
    int i = s.lastIndexOf('.');
    if (i > 0 && i < s.length() - 1)
    ext = s.substring(i+1).toLowerCase();
    return ext;
    }Any help is greatly appreciated!
    Tom Jansen

    @tjacobs01
    Hi Tom,
    I have a question regarding your classes
    tjacobs.ui.fc.FileExtensionFilter and
    tjacobs.ui.fc.FileChooser.
    When I look at your code, I see the filename extension is appended in showSaveDialog:     public int showSaveDialog(Component c) {
                        setSelectedFile(new File(f.getAbsolutePath() + "." + ((FileExtensionFilter)filter).getType()));
        }It gets the extension by calling getType on the filter. But getType is implemented as:    public String getType () {
            return mExtensionList.get(0).toString();
        }So this returns the first type in the list. It does not check what filetype is selected by the combobox.
    Am I missing something?
    Also, in getDescription:    public String getDescription() {
            if (mDesc == null) {
                mDesc = "";
                for (int i = 0; i < mExtensionList.size(); i++) {
                    mDesc += (i != 0 ? ", " : "") + "." + mExtensionList.get(0).toString();
                mDesc+= " files";
            return mDesc;
        }you seem to iterate through the list, but only take the first entry every iteration.
    Can you explain mExtensionList.get(0)?
    Do you know how to test what type is selected in the JFileChooser's combobox?

  • "Save As" dialog of excel for a sandbox solution library of sharepoint gives "Web page no longer exist. Error 410"

    Hi
    I created 2 libraries via a sandbox solution for sharepoint 2010. 
    I uploaded an excel file into the library.
    Now on opening via excel that file and clicking "Save as " dialog - it tries to open that sharepoint library where the file resides.
    But i am getting an error of "Webpage no longer exists".

    No, this approach doesn't solve the problem
    I have the same problem. Created a new SharePoint 2010 List Definition project, Sandbox deployment option. List Definition type: Documents Library.
    When attempting to save into the document library from Microsoft Word 2010 I get "The webpage no longer exists" error in the File Save dialog
    If I change the type of the solution to Farm solution it works as expected.
    IISLOGS:
    2013-12-19 10:12:01 127.0.0.1 PROPFIND / - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 35
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 26
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites/team1 - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 30
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites/team1/Lists - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 32
    2013-12-19 10:12:01 127.0.0.1 POST /_vti_bin/shtml.dll/_vti_rpc - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 200 0 0 10
    2013-12-19 10:12:01 127.0.0.1 HEAD /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.*&location=Lists/ListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 0 0 6
    2013-12-19 10:12:01 127.0.0.1 HEAD /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.*&location=Lists/ListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 1 2148074254 2
    2013-12-19 10:12:01 127.0.0.1 HEAD /_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.*&location=Lists/ListDefinitionProject1-ListInstance1 80 0#.w|domain\username 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 200 0 0 23
    2013-12-19 10:12:01 127.0.0.1 GET /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.docx&location=Lists%2FListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 0 0 10
    2013-12-19 10:12:01 127.0.0.1 GET /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.docx&location=Lists%2FListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 1 2148074254
    2
    2013-12-19 10:12:01 127.0.0.1 GET /_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.docx&location=Lists%2FListDefinitionProject1-ListInstance1 80 0#.w|domain\username 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 410 0 0 34
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites/team1/Lists/ListDefinitionProject1-ListInstance1 - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 36

  • In javascript how to invoke save as dialog box ,which saves .pdf files only

    Through javascript i generated a save as dialog box. the main problem is , it is only saving .html and .doc files by default. how to restrict it to save only .pdf files.
    the code i used is
    function SaveFile(fname)
    document.execCommand('SaveAs', null, fname)
    <input type="button" value ="save" onclick="SaveFile('');">
    /**********************************************************************/

    this is actually a Java forum its slightly different from javascript
    but try this not sure if it helps
    <input type="button" value ="save" onclick="SaveFile('.pdf');">

  • Selecting existing file in "Save as" dialog isn't adding the extension

    I just bought a new Mac with Snow Leopard to replace my Leopard Mac and have noticed an annoying difference with the "Save As" dialog boxes in every application. In Leopard, I used to be able to select an existing file to overwrite that file. In Snow Leopard, it's letting me select an existing file, but the extension is not being added to the file name, so it's creating a new file with the same name but without the extension. I also don't have the "Hide Extension" checkbox that used to be in Leopard. I have spent all evening looking for this but haven't been able to find anything, which implies to me that I must have some setting wrong or something (or I'm just not searching the right terms, it's hard to know what to search for); anyway, does anyone know what I need to do to change this to act the way I expect it to? Thanks -

    jscher:
    Thanks. The /tmp and home directories are on the same partition as the main operating system. The Downloads directory is actually set up as a sub-directory of the home one but is a symbolic link to a NAS drive. It works fine for other MIME types. It is just when web sites use the application/octet-stream MIME type that I get this problem.
    I checked the permissions and the /tmp and Downloads directories have full read write permissions for everyone. The home directory is the one with the restriction that only I can write to it.
    So, I don't expect that sheds any light on the problem.
    cor-el:
    Thanks. I meant to say in my first post (but pressed the button before it got in) that I actually created a completely new Firefox profile and the problem is still there. Sorry, I should have included that.
    The only difference with the fresh profile is that the "open in default application" isn't available, presumably because no default application has been assigned. The "save as" behaviour is still the same.
    So, if the problem exists in a pristine profile, it looks like there is something deeper wrong.

  • Display save as dialog when downloading a file

    Hi,
    I want to display a save as dialog when the user downloads a file.
    Now I get a dialog where the user can choose to open or save it.
    I set these headers:
    res.setHeader("Content-disposition", "attachment; filename=" + filnamn);
    res.addHeader("Content-Type", "application/force-download");Thanks!

    Sorry!
    When the user downloads a file I want to open a dialog where the user
    can write a filename and then click Save to save the file.
    Today I get a dialog where the user first have to choose if he wants to open or save the file.
    When he clicks save then the dialog appears that I would want to be displayed.
    I hope this clearifies my question.

  • Save Open dialog box opening very slow

    I have windows 7 professional 64bit OS. whenever i try to open/save as dialog box it appears very slow, then it will say it is not responding then after 10-15sec it will come alive.
    Need help!!!!!!

    Blair,
    I followed your suggestions above....reset IE ...clean boot. Didn't solve the problem.  (had trouble making that MSCONFIG window bigger !? <wink>)
    Problem still exists.  And to be clear, here is the problem(s) ...I believe they are all interrelated.
    #1.  I end the explorer.exe process and restart it.  Run Explorer and start clicking folders in my FAVORITES.  System hangs for about 10 seconds before it catches up.
    Alternatly, after a explorer.exe restart, if I run explorer and start clicking down through folders from the C: drive, there is no hang.   SUSPECT - some sort of file for favorites needs to be rebuilt?!
    #2. Open MS Word.  Type a few letters.  Select File/Save.  Most icons under Favorites are white.  Trying clicking more than one, but system hangs for ten seconds until icons fill in.
    #3.  WINDOWS button, start typing in the search INTERNET....5-10 seconds before Internet Explorer (and other INT* things show up.!  Usually this is instantaneous.
    System Info:
    Great machine and fast for over a year, and now this started FYI.
    OS Name    Microsoft Windows 7 Home Premium
    Version    6.1.7601 Service Pack 1 Build 7601
    Dell System XPS L321X
    x64-based PC
    Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz, 1601 Mhz, 2 Core(s), 4 Logical Processor(s)
    4 gb Ram
    256 SSD
    ACTIONS TAKEN:  (estimated 30 reboots today)
    - Ensure all folders are GENERAL under properties
    - Advanced Attributes - turned off "allow files on this drive to have contents indexed in addition to file properties"
    - Checked Indexed location is C: drive/ User/ just my data areas....reindexed
    - Tried reboot with Windows Search service disabled....no help.  Turned back on.
    - Tried MS Essentials off.  Tried Firewall off
    - Rebuilt ICONCACHE - was 8mb, now less 450kb
    - Archived OUTLOOK down to a reasonable size (and had to do the manual compress to reduce the file size after)
    - turned off some Windows visual effects.
    - Turned off Dropbox from autostarting....this was before I tried the Clean Boot
    - turned by ON (default)  in Startup - though it has Unknown MFG and no details  :~(   , i found that it likely is needed for my 64 bit machine.
    Any help would be appreciated.
    Steve

  • How to enforce save/open dialog on fileDownload

    Dear All,
    in my adf bc app., an item is set to be displayed as fileDownload of OrdDocDomain to show a download link to the file stored in a orddoc column in a table. for doc file type, browser will prompt the dialog to ask to save or open, while for pdf or txt file, it just opens
    the file in the new browser tab. i know it depends on the behavior of browsers, my wonder is, is there a workaround to enforce the dialog(save/open) to all types of files? thanks.
    regards
    Jerry

    Hi...
    Usually in J2ee if you have a handle to response object...
    You can add a header called Content-Disposition as attachment...
    response.addHeader("Content-Disposition", "attachement; filename=\"" + fileName + "\"")
    By default Content-Disposition header will be "inline"..ie why the files are getting displayed in the page itself ( Given the format is supported by browser).
    If you set it as attachment then the file download popup will come..
    Hope you will be able to use this...
    Thanks..
    Abhilash

  • How come the "save as" dialog box keeps popping up whenever I try to use alt codes?

    I type with diacritical marks regularly but recently, when I press and hold Fn + Alt + the numerical code, it brings up the "save as" dialog box. This seems to be a Firefox-specific issue because this doesn't happen on Microsoft Word + other programs. I am wondering how to disable this "save as" dialog box shortcut, or how to just get the alt codes to work.

    Hm, this is the list of add-ons that are currently enabled on my browser:
    <br><br>
    Dictionnaire française moderne (it can't be this one because I just installed it today)<br>
    Java Console 6.0.18<br>
    Java Console 6.0.25<br>
    Java Console 6.0.20<br>
    Java Console 6.0.24<br>
    pdfit (doesn't seem like it's this one either)<br><br>
    Conclusion: might it be one of the Java Consoles?
    Thanks!

  • How to get save as dialog box.

    i want to open a "save as" dialog box from file menu.and i want to specify by myself which type of item should be in "Save as type" drop box in the save as dialog box.how to do it???????plz help........thanx in adv.

    I believe that the Sun tutorial over [How To Use File Choosers|http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html] will be able to give you the answer for this one. This and the JFileChooser API and other associated APIs.

Maybe you are looking for