Skip to content

Want to edit the Places Bar of Save As dialog box of MS office.

anil b

Asked Aug 25, 2008, 9:08 PM EDT2 answers
Share
LinkedInX

I am trying to open up a "Save As dialog box" in word using c#. I can open the dialog box fine, but i need to modify the Places Bar. I want to remove everything except My Network Places from the Places Bar. anybody please help me out.

thank you. 

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • +1

    please help me guys...

    thanks a lot in advance...

    +1
  • +1
     

    I am trying to open up a "Save As dialog box" in word using c#. I can open the dialog box fine, but i need to modify the Places Bar. I want to remove everything except My Network Places from the Places Bar. anybody please help me out.
     

    C#
    Microsoft.Office.Interop.Word.Application wordap = applicationObject as Microsoft.Office.Interop.Word.Application;
    
    Microsoft.Office.Interop.Word.Dialog oDlg = wordap.Dialogs[Microsoft.Office.Interop.Word.WdWordDialog.wdDialogFileSaveAs];
    
    object[] oArgs = new object[1];
    oArgs[0] = (object)@"test.doc";

    oDlg.GetType().InvokeMember("Name", BindingFlags.SetProperty, null, oDlg, oArgs); its working for "Name" , fine.

    Here similarly if i do like- InvokeMember("Places bar", indingFlags.SetProperty, null, oDlg, oArgs);

    its not working. how can i modify the links on Places Bar???

    please help me with this.

    thanks a lot.



    +1