Answer Questions
B. Ritter Rightclick context menu in MAPIFolder in Outlook
Hi, I am trying out the VSTO by developing an Outlook Addin. I was wondering if it is posible to add menuitems to the "right click"-context menu. What I want to develop is a feature, so that you are able to right click on a mailitem and select a custom menuitem called 'Copy Mail to CMS...'. Is the posible I haven't had the luck to find anything about it, but VS2005 is also rather new at the moment. Sincerely Hi,everybody! I had known how to add a context menu in Outlook finally. I wrote it down on http://www.cnblogs.com/Isabella/articles/contextmenu.html My blog: http://Isabella.cnblogs.com Janus, There is no support way to add new right-click menus to these folders in the navigation bar or in the Ex ...Show All
Jassim Rahma Branch project from batch command line or vbscript ole automation
Is there anyway that I could branch project using batch command line or vbscript ole automation I search command line reference, but I can't not find parameter for branch source and branch target. Please help. Thanks I want to branch $/trunk/project01 to $/projects/01 Here is what I'm trying but it not work. Please correct me. ss cp $/projects/01 ss branch $/trunk/project01/*.* I got no error but nothing was happened. I think you may be confusing the branch command and the share command. When you share a file you create a link between the versions of the file in the projects that share the file so when you check in the file to one of the project ...Show All
Kostadin Transfer windows form contents to a word File
I am having a VS .NET C# windows form containing about 20 textboxes, 20 labels and 5 combo boxes. I want to have a button on the same form. On click of this button i want to tranfer all the contents of this form to a word document and it should show the word document containing whole data. Also there should be no versioning problem with word version. User can have any version of office installed on the system or not installed at all. Gaurav Funny. We all earn our living by writing solutions. Why would we email one to you for free... In any case, this is not the appropriate venue for getting assistance on how to automate the Word application interface. You should ask for help here http:/ ...Show All
Hossam Abdel Wahab The NTVDM CPU has encountered an illegal instruction
Hi, I receive this error when i want to start my MS Visual Studio 2005 Trial installation, after mount image, i try to copy to hard disk but nothing change...., i have a Xp w/ SP2, i uninstall all beta and express versions!!!. Can somebody help me Thanks i already run sfc /sannow... Thanks Have you tried using another ISO mounting tool I have no idea, maybe the installation media is corrupt Hi, Thanks all, i try download again, and now all OK Scan your system for viruses that might have replaced your command.com ...Show All
Alexander Rust Shouldn't XDocument.ToString() output declaration?
Shouldn't the ToString() method of XDocument output the document's declaration It doesn't. Here is some code and output: XDocument xDocument = new XDocument( new XDeclaration("1.0", "UTF-8", "yes"), new XElement("Root")); Console.WriteLine(xDocument.ToString()); This code outputs: <Root /> I think what he's saying is that strings are UTF-16; a .NET char always occupies 16 bits and so only supports one encoding. It only makes sense to talk about UTF-8 when writing or reading from a stream, or encoding to a byte array. This could be a red herring, though, in terms of the original problem. Joe (another Joe) But, that actual XML document could be output as UTF ...Show All
Prajakta Chavan Can't see System.ServiceModel in Add Reference
Hi: I've just installed the July CTP of .Net 3.0 and its accompanying SDK. However, when I attempt to Add a reference to System.ServiceModel to a project in VS2005, I do not see System.ServiceModel listed on the .Net tab of the Add Reference dialog. However, the System.ServiceModel is in the GAC. This is happening on 2 machines. Anyone have any idea as to what may be going on here Thanks Lionel you can install vsextwfx.msi like explained in this blog,This should fix Add reference problem http://blogs.msdn.com/markgabarra/archive/2006/08/01/685797.aspx Even simpler, install Visual Studio 2005 Extension for WCF (or Orcas, new version of Visual Studio) cf http://www.microsoft.com/download ...Show All
Alex Bibiano Security Pain (Vista basicHttpbinding)
I am struggling to get my server running with the basicHttp binding over https on Vista (it is a self hosted server). The server starts up and doesn't complain but the client exceptions when I try to start it up: "An error occurred while making the HTTP request to https://192.168.1.64:8081/Server/G2SServer . This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server." My first question is whether configuring http.sys is required for an application running with the basicHttp binding (this help page implies it is only necessary for WSHttpBinding ms-help://MS.MSSDK.1033/MS.NE ...Show All
Son_seph14 ListBasedPublishSubscribe runs the first time, then the Subscriber doesn't display any events
I've tried running the ListBasedPublishSubscribe sample a few times. It ran properly the first time: The publisher console app showed that it had published its 5 events and the subscriber console app showed that it had received them. Now I'm getting the following error message from the publisher every time I run the sample: + $exception {"The sequence has been terminated by the remote endpoint. Due to a user abort the reliable session cannot continue. The reliable session was faulted."} System.Exception {System.ServiceModel.CommunicationException} I expect an SDK sample to run correctly every time. Any ideas why the ListBasedPublishSubscribe doesn't run reliably iisreset.exe fixes the problem temporarily but the ...Show All
Shyam Sundar Drag&Drop in Word
How I can disable Drag&Drop in Word 2007. In word document I have some Contents controls and I want that user can't change position of this controls. Yes !!! It's work. Thank for your help. Hi Rus Application.Options.AllowDragAndDrop = False However, this does apply to the entire application, so it might make sense to use a couple of events to turn this on/off, as appropriate. ...Show All
Ccercone Problem while adding xml nodes to a word document
Hi I am adding xml nodes to word 2003 dynamically by using selection object in VB.Net. Everything is fine i am able to add the xml nodes. Currently in word document after adding the xml nodes the nodes are displaying in new line instead of the same line. After adding the xml nodes the output looks like the below in word document. <placeholder> <Field Target="sometext"> <Text></Text> </Field> </placeholder> I want the xml nodes to be displayed as <placeholder><Field Target="sometext"><Text></Text></Field></placeholder> It is adding paragraph character (*||) after eac ...Show All
LynnOoi Disable Navigation Hotkeys in a WPF Navigation App
How can i disable navigation hotkeys in a wpf navigation app For example the backspace key makes the app go back a page. I want to disable all such keyboard navigation. Thanks. -jgoines Thanks so much, overriding the command bindings works perfectly and solves my problem. The question of whether or not I should be using a Navigation app is an interesting one. I could probably mimic all my functionality using a normal Window, and programmatically setting the content of the window. However I do make use of PageFunctions and they are very convenient at times and I'd have to do some extra work to mimic that functionality. -Ryan How can I 'add an empty handl ...Show All
Lborshard BUG? : XContainer.ReplaceContent throws an exception if attributes of the element are passed...
and they already exist on the element. I am not saying it's a bug for sure, but if an element has an attribute, and you call ReplaceContent() on the element and specify the same attribute, you will get an exception. I tend to think it is a bug for the following reasons. 1. It has the same feel as the class constructors that allow multiple args to be passed. And, since when constructing an XElement you can specify attributes, it feels a little inconsistent that you cannot specify them when you call ReplaceContent. You could argue that attributes of an element are not considered content, but I think you could also say they are. 2. If you do not already have an attribute with the passed name, it will be added and handled properly. It ...Show All
Lamon What's the best way to determine DSLs being used in a project?
If there are multiple DSLs being used by a project, is there some way within DTE that will tell me whether or not a given ProjectItem is a DSL Thanks OK, further update. Seems there's actually an API called IVsUIShellOpenDocument::GetStandardEditorFactory() which given the file extension will get you the default EditorFactory instance. You should be able to look at this instance and see if its implementation type is derived from the DSL Tools base class for EditorFactory (Microsoft.VisualStudio.Modeling.Shell. ModelingEditorFactory). This may save you some time hammering on the registry. Hi Aaron, I'm not aware of anything that would get you this, but I've asked our deep VS SDK ...Show All
Paul D. Murphy upgrade patch cannot be installed by the Windows Installer service
Hi Is the 20-DEC-2006 SP1 Update for VS2005 the most recent version I tried to patch the Team Edition for Software Developers running on the 6000 build of Vista x64 and i get the following error The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version ... Am I using the wrong patch ( http://www.microsoft.com/downloads/details.aspx familyid=FB6BB56A-10B7-4C05-B81C-5863284503CF&displaylang=en ) - is there an x64 version Dave As mentioned in the Visual Studio 2005 Service Pack 1 Update for Windows Vista release notes it is supported on both the x86 as the x64 editions ...Show All
Tovdb Regpkg.exe errors while registering a LangaugePackage
Hi, There is a weird looking problem with my language package. When I use "Regpkg.exe /codebase mylangpackage.dll", I get errors stating 'Could not load file 'EnvDTE version7.0.3333.0...........' So I looked up to find out that the VSLangProj.dll refers to the old version of EnvDTE which is 7.0.3333.0 I again found out about the binding redirect solution, so I created a Regpkg.exe.config and put the <runtime>bindingredirect xml here</runtime> (from http://msdn2.microsoft.com/en-us/library/ms228768.aspx ) in it. It still didn't work for me after this and I got the same error. Then I installed the actual EnvDTE 7.0.3333.0 version into GAC (I picked this up from elsewhere, coz I didn't have it in my machi ...Show All
