Visual Studio Tools for Office ForumQuestions on using Visual Studio to create managed code solutions in Office 2003 and Office 2007.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 22:26:21 Z0e69520a-0af0-4085-a8c4-c5f21ce20e01http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/0c599879-441d-4d17-b780-f4abd07e88b1http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/0c599879-441d-4d17-b780-f4abd07e88b1Yavuz Bogazcihttp://social.msdn.microsoft.com/Profile/en-US/?user=Yavuz%20BogazciHow to access a plaintextcontentcontrol in an document from an application addin?Hi, <div><br/></div> <div>i need to develop under vs 2008 a word 2007 template with some fields and bookmarks. I have now created a Word 2007 AddIn Project and a Word 2007 Template Project.</div> <div><br/></div> <div>In the Word 2007 Addin Project i did:</div> <div><br/></div> <div>1. I added a Ribbon with a Button</div> <div>2. Added a Form (InputForm)</div> <div>3. The Button on the Ribbon open the Form</div> <div><br/></div> <div><br/></div> <div>In the Word 2007 Template Project i did:</div> <div><br/></div> <div>1. I added two fileds (bookmarks) in my document</div> <div><br/></div> <div><br/></div> <div>Now i want to open my template (create a new document out of it) and click on my button in the ribbon.</div> <div><br/></div> <div>This opens my form and i want to insert some text on button click at the bookmarks with i had inserted before in my word template.</div> <div><br/></div> <div><strong>I only need to know, how i can use the bookmark fields from an application based addin form.</strong></div> <div><strong><br/></strong></div> <div>Can someone help please?</div> <div><br/></div> <div>thank you</div> <div>yavuz</div>Tue, 29 Sep 2009 17:59:46 Z2009-11-25T22:26:21Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/5eec7e22-dc5b-4ed3-a2b5-293eb1ed32a6http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/5eec7e22-dc5b-4ed3-a2b5-293eb1ed32a6Nutshell69http://social.msdn.microsoft.com/Profile/en-US/?user=Nutshell69Excel Ribbon for 2007 and Menu for 2003<p>I have an Excel Office application that was built on Office 2003 - with its own Menubars, etc.<br/><br/>I would like to use the same application in Office 2007 - but instead of keeping the Menubars (and having it show up in the Add-Ins tab) , build a new Ribbon for it<br/><br/>I was wondering if it is possible to have my Code-behind code determine the Office version then either build out the Menubar (if 2003) or Ribbon (if 2007).<br/><br/>I have successfully built out an Office 2007 Excel app with its own Ribbon - so I am familiar with how to perform this task.<br/><br/>Is this even possible considering the different DLLs that may be required to accomplish this?<br/></p>Mon, 23 Nov 2009 20:40:06 Z2009-11-25T21:45:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/74eee9f4-c4d8-4bfd-8b24-db5776b642c4http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/74eee9f4-c4d8-4bfd-8b24-db5776b642c4csharp.nethttp://social.msdn.microsoft.com/Profile/en-US/?user=csharp.netProperties missing from my wdDialogFilePrintSetup object?Hello! <div><br/></div> <div>I am trying to automate printing from Word 2007 through a VSTO customization that I have developed.</div> <div><br/></div> <div>When users hit Ctrl+P i display a custom print form with &quot;friendly names&quot; for all our network printers, and information about trays and what kind of paper is located in these.</div> <div><br/></div> <div>The problem is when the users hit my &quot;Change printer&quot; button. This brings up another form, which lists all our printers (from an XML-file). When they select one and clicks &quot;Ok&quot; I want to set the current printer in Word to that partucular printer.</div> <div><br/></div> <div>I have found example code that does exacly what I want:</div> <div> <pre lang=x-vbnet>strDeviceName = m_Printers(PrinterInfo.DeviceName, intIndex) With Dialogs(wdDialogFilePrintSetup) .Printer = strDeviceName .DoNotSetAsSysDefault = True .Execute End With</pre> My case is that I am using C# code in my project, and there I cannot access these properties:</div> <div>.Printer</div> <div>.DoNotSetAsSysDefault</div> <div><br/></div> <div>They simply don't exist in my dialog-object that I create like so:</div> <div>Word.Dialog dlg = Globals.ThisAddIn.Application.Dialogs[WdWordDialog.wdDialogFilePrintSetup];</div> <div><br/></div> <div>I have tried setting the Application.ActivePrinter instead, but that has two major drawbacks;</div> <div>1. it is veeeeery slow to set a network printer this way. The application hangs for up to 30 seconds while it is polling the network or whatever...</div> <div>2. it also changes the users default printer. setting it back again after printing  will trigger another hang as in 1...</div> <div><br/></div> <div><br/></div> <div><br/></div> <div>So, now I am stuck...</div> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div> <div>Could anyone please advice?</div> <div><br/></div> <div><br/></div> <div>Thanks!</div> <div> <div><br/></div> <div><br/></div> </div>Wed, 25 Nov 2009 15:31:57 Z2009-11-25T21:31:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/17a4e931-843b-4a69-8231-f5d7891c46cbhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/17a4e931-843b-4a69-8231-f5d7891c46cbMichael-C_89http://social.msdn.microsoft.com/Profile/en-US/?user=Michael-C_89Changing the anchor of a shapeHi,<br/> <br/> I am trying to make a plug in for Microsoft Word 2007, what I need to be able to do is change the position of a shapes anchor to a specific paragraph so that when the paragraph is moved that the shape maintains its correct position in relation to the paragraph, any ideas on how to do this? I am working with C# and Visual Studio 2008. Thanks.Thu, 19 Nov 2009 23:39:04 Z2009-11-25T21:02:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/ec174efd-6996-43f1-8707-fc29b4f0a878http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/ec174efd-6996-43f1-8707-fc29b4f0a878programatichttp://social.msdn.microsoft.com/Profile/en-US/?user=programaticCan a MS COM add-in (word for example) send messages to C# application?I've built a word com add-in and everytime when the document closes: a dialog pop up saying what document it is. Is there a way that instead of that, have the com send messages to my C# applicationThu, 19 Nov 2009 11:32:18 Z2009-11-25T20:56:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/f773eb34-b125-41ad-aff8-17ab86a28adchttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/f773eb34-b125-41ad-aff8-17ab86a28adczbixhttp://social.msdn.microsoft.com/Profile/en-US/?user=zbixneed help iterating through empty Excel cellsI'm new to Office development, so thanks in advance. <div><br/></div> <div>I'm just wanting to start at a specific cell, and then go done a column applying a method to each cell that is not empty.</div> <div><br/></div> <div>how do i go about doing this?</div> <div><br/></div> <div>Thanks again.</div>Wed, 25 Nov 2009 20:49:22 Z2009-11-25T20:49:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/1f78c1ba-5e24-4cab-a4e5-cc132637fceehttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/1f78c1ba-5e24-4cab-a4e5-cc132637fceeRickHanhttp://social.msdn.microsoft.com/Profile/en-US/?user=RickHanVSTO:Excel:Actionpane controls won't populate from sql table<span class=value>I have a custom actionpane in Excel 2007. I want to have a checked listbox that is populated from a SQL table. <br/> The data source is configured and I see the tables and columns that I want to choose from.<br/> I drag a column over to the action pane and create a checked list box.<br/> When I run it under debug, the control is not populated. Nothing that I have tried in the last few hours has worked. My static collection listboxes show up fine.<br/> If I drag the table icon into one of the spreadsheets, it's populated, so I know my connection is good.</span>Mon, 23 Nov 2009 03:20:32 Z2009-11-25T19:22:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/03d7211c-1cf3-4045-86eb-773f7e915f05http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/03d7211c-1cf3-4045-86eb-773f7e915f05T Hansonhttp://social.msdn.microsoft.com/Profile/en-US/?user=T%20HansonCannot figure out this COMException for add-in for outlook 2003I'm getting an odd outlook.attachment.comexception that seems to be occurring when certain users attempt to save attachments that are actually linked images (eg, the email is an HTML email and the attachment is actually an &lt;IMG/&gt; with src=&quot;http://someexternalserver&quot;).  We have limited internet access for most people here, so I am assuming that the limitation is causing the issue, but since I cannot find more information on the error, i have no way of actually knowing this.<br/> <br/> Here is the exception:<br/> <pre>System.Runtime.InteropServices.COMException (0xBBC04005): Cannot save the attachment. Can't create file: item_minus.gif. <br/> Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder.<br/> at Microsoft.Office.Interop.Outlook.Attachment.SaveAsFile(String Path)</pre> The file is being saved into a subdirectory their &quot;My Documents&quot; directory and they have full control over that directory.  I also checked to make sure the file didn't exist before attempting to save.  I haven't been able to find anything on the error code 0xBBC04005.  If the problem does seem to be that it cannot reach the &quot;attachment&quot; from the external web server, is there any way that I can know that it is linked from an Outlook.Attachment object?  Does anybody have any more info on that error code?<br/> <br/> The add in runs on Outlook 2003.<br/> <br/> Any help appreciated.Mon, 23 Nov 2009 16:18:47 Z2009-11-25T19:21:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/ab07b423-b725-4698-b17d-db2cf2393b70http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/ab07b423-b725-4698-b17d-db2cf2393b70rohit_patel81http://social.msdn.microsoft.com/Profile/en-US/?user=rohit_patel81how to disable security pop up while reading OUTLOOK public calendar<p>I am writing a code to read my public calendar and write to file, and i want this to be scheduled. But everytime i try to read the item it pops up a security dialog saying &quot;a program is trying to access email addresses you have stored in outlook. do you want to allow this&quot;. I want to get rid of this pop up. Please help. i have attached my code below<br/><br/>            Outlook.Application objOutlook = new Microsoft.Office.Interop.Outlook.Application();<br/>            Outlook.NameSpace objNS = objOutlook.GetNamespace(&quot;MAPI&quot;);<br/>            Outlook.Folders oFolders = objNS.Folders;<br/>            Outlook.MAPIFolder oPublicFolder = oFolders[&quot;Public Folders&quot;];<br/>            oFolders = oPublicFolder.Folders;           <br/>            Outlook.MAPIFolder rcFolder = oFolders[&quot;CALENDAR&quot;];<br/>           <br/>            Outlook.Items rcItems = calFolder.Items;           </p> <p>            TextWriter tw = new StreamWriter(c:\test.txt);            <br/>            int irc = 1;<br/>            while (irc &lt;= rcItems.Count)<br/>            {<br/>                try<br/>                {<br/>                    AppointmentItem airc = rcItems[irc] as AppointmentItem;</p> <p>                    if (airc != null)<br/>                    {<br/>                        tw.WriteLine(ConvertToString(airc.Start) + &quot;|&quot; + ConvertToString(airc.End) + &quot;|&quot; +<br/>                            ConvertToString(airc.Subject) + &quot;|&quot; + ConvertToString(airc.Location) + &quot;|&quot; +<br/>                            ConvertToString(airc.Categories) + &quot;|&quot; +<br/>                            ConvertToString(airc.Body) + &quot;|&quot; + ConvertToString(airc.RequiredAttendees) + &quot;|&quot; +<br/>                            ConvertToString(airc.OptionalAttendees) + &quot;|&quot;); <br/>                    }<br/>                }<br/>                catch { }<br/>                irc++;<br/>            }  <br/>            tw.Close();<br/><br/><br/>Please help as it is really urgent.</p>Tue, 17 Nov 2009 19:52:36 Z2009-11-25T18:23:17Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/33ab4e57-03b1-4356-b627-6f4ea46aca30http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/33ab4e57-03b1-4356-b627-6f4ea46aca30Herbert the Perverthttp://social.msdn.microsoft.com/Profile/en-US/?user=Herbert%20the%20PervertControl of Value2 setter<p>Excel 2007 and VSTO 3 SP1. I some range object and two dimensional array with indexes starting with 1, specially made for this thing. Then I assign array to range:<br/><br/>object[,] newData = ...<br/>Range r = ....<br/>r.Value2 = newData;<br/><br/>newData is fine every time as I inspect it in the debugger, r is not null. However, setting Value2 works mostly, but may fail. And if it fails, the whole method it is called from is interupted. No try...catch can really catch this fail, perhaps it is COM exception. So, what to do? I dont care why it fails, I just want to know if setting was successfull or not and continue method execution</p>Wed, 25 Nov 2009 10:37:59 Z2009-11-25T17:52:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/320a115b-91ba-4bec-8699-5f38ce7b2c60http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/320a115b-91ba-4bec-8699-5f38ce7b2c60ShaunPhillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=ShaunPhillips[Excel Add-In][C#] - Output data to CellHi<br/> <br/> Should be a really simple answer, but endless amounts of searching has turned up nothing.<br/> <br/> I'm making an Excel Add-In (in C#), and I want to &quot;export&quot; data from a custom Form into a specific cell in the current spreadsheet. Thats it, pretty simple - just can't figure it out...<br/> <br/> Thanks.Wed, 25 Nov 2009 04:28:13 Z2009-11-25T17:34:37Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/24c26e9d-49f2-4639-9e59-f51dcbf719a9http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/24c26e9d-49f2-4639-9e59-f51dcbf719a9Grimshuhttp://social.msdn.microsoft.com/Profile/en-US/?user=GrimshuVSTO 2010 and .NET framework versionsHello,<br/> <br/> I am currently using Visual Stusio 2010 Beta 2 to try a port of an Office solution written with Visual Studio 2008 and VSTO 3.<br/> My office solution is composed of two add-ins to Word and Excel 2007. <br/> These add-ins reference assemblies that are not yet built on .NET 4.0. I have thus defined the target framework of my VSTO project to <em>.NET 3.5 Client</em> . However, the VSTO 2010 runtime does not load the add-in if it does not target the .NET framework 4.0. This all makes sense, but I would like a confirmation of the following:<br/> <br/> - VSTO 3.0 based solutions cannot be loaded in Office 2010 <br/> - When using VSTO 2010, one has to recompile all required assemblies using Visual Studio 2010 / .NET 4.0<br/> <br/> Corollary: Office 2010 applications can only run customizations built on .NET 4.0<br/> <br/> Thanks a lot to anyone who can clarify this.<br/> <br/> --<br/> Cyril<br/>Mon, 23 Nov 2009 08:23:18 Z2009-11-25T16:38:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a6937948-d386-4029-8ced-93173580d55ahttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a6937948-d386-4029-8ced-93173580d55anadeem4nhttp://social.msdn.microsoft.com/Profile/en-US/?user=nadeem4nCatching when Outlook goes in offline mode with exchangeHi All, <div><br/></div> <div>I have a VSTO add-in for Outlook 2003 and 2007, developed in C#. I can detect if Outlook is in offline / online mode at any instant.</div> <div><br/></div> <div>Is there any event that is fired when Outlook goes to offline mode / returns to online more (either by user command or by any way) ?</div> <div><br/></div> <div>In that way I will be able to notify my plug-in to hang / pause processing if Outlook goes offline.</div> <div><br/></div> <div>Best Regards,</div> <div>Nadeem</div>Mon, 23 Nov 2009 11:46:37 Z2009-11-25T16:30:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d0ae734b-24a8-4405-8f63-7665de85bcedhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d0ae734b-24a8-4405-8f63-7665de85bcedBlackCambriahttp://social.msdn.microsoft.com/Profile/en-US/?user=BlackCambriaOutlook Folder Home Pages<p>Does anyone know whether using WebViewUrl will maintain cookies during a session of Outlook.  For example, I set the WebViewURL for a folder to an internet site where the user authenticates.  The user then can navigate the site within Outlook.  If the user clicks on another folder and navigates back to the folder that has the WebViewUrl set it will ask them to login in again.  I checked the cookie by doing alert(document.cookie) and it's blank. So my guess that it will not maintain the cookie.<br/><br/>I notice Microsoft Dynamic CRM does this successfully but I'm not sure whether they are using cookies.</p>Wed, 18 Nov 2009 14:56:13 Z2009-11-25T16:15:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/e190e229-366d-4239-8c99-9203d57cdc68http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/e190e229-366d-4239-8c99-9203d57cdc68GChaveshttp://social.msdn.microsoft.com/Profile/en-US/?user=GChavesmicrosoft.office.interop.outlook.dll CSLID errorI all, maybe by the title you may figured out what is my problem. the real deal is, that I wrote an XBAP application to retrive from Outlook your contact list. The cool thing is that works in some machines with Vista and 7, even in a old XP. Sweet<br/><br/>But, in some machines I'm getting this error: <strong>Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005. <br/><br/></strong>I also try to search some workarrounds for this, and I used some advices from anothers that has similar issues. The real strange thing is the facto that not work in all machines...<br/><br/>any adicional ideas?<br/><br/>thanksTue, 24 Nov 2009 15:31:56 Z2009-11-25T15:17:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/7f898166-bedb-48b9-be4d-c765d4b8123bhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/7f898166-bedb-48b9-be4d-c765d4b8123bSasa Tomicichttp://social.msdn.microsoft.com/Profile/en-US/?user=Sasa%20TomicicOutlook 2010 Add-In issue: Customization could not be loaded because the application domain could not be created.<p>Hi all,<br/><br/>I hit the wall while trying to start my add-in inside the Outlook 2010 beta on my test x64 machine.<br/>Add-in fails to load and reports the following error: Customization could not be loaded because the application domain could not be created.<br/><br/>The very same add-in works on a x86 machines!<br/><br/>Please help,<br/>Saša<br/><br/>Reported error:<br/><br/>Log Name:      Application<br/>Source:        VSTO 4.0<br/>Date:          11/23/2009 2:44:17 PM<br/>Event ID:      4096<br/>Task Category: None<br/>Level:         Error<br/>Keywords:      Classic<br/>User:          N/A<br/>Computer:      w7TCOForGregg<br/>Description:<br/>Customization URI: <a>file:///C:/Program</a> Files (x86)/Company/AddInName for Outlook/Company.AddInName.Outlook.vsto<br/>Exception: Customization could not be loaded because the application domain could not be created.</p> <p><br/>************** Exception Text **************<br/>Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---&gt; System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\Company\AddInName for Outlook\Company.AddInName.Outlook.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.<br/>File name: 'file:///C:\Program Files (x86)\Company\AddInName for Outlook\Company.AddInName.Outlook.dll'<br/>   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.LoadFrom(String assemblyFile)<br/>   at System.AddIn.Hosting.ActivationWorker.Activate()<br/>   at System.AddIn.Hosting.AddInActivator.ActivateInAppDomain[T](AddInToken pipeline, AppDomain domain, AddInControllerImpl controller, Boolean weOwn)<br/>   at System.AddIn.Hosting.AddInActivator.Activate[T](AddInToken token, AddInEnvironment environment)<br/>   at System.AddIn.Hosting.AddInToken.Activate[T](AddInEnvironment environment)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, AddInToken addInToken, String assemblyName, String[] entryPoints)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, AddInToken addInToken, String assemblyName, String[] entryPoints)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.LoadMafPipeline(AppDomain newDomain, IntPtr hostServiceProvider, AddInInformation info, EntryPoints requestedEntryPoints, OfficeApp officeApplication, OfficeVersion officeVersion, IntPtr&amp; executor)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr&amp; executor)</p> <p>WRN: Assembly binding logging is turned OFF.<br/>To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br/>Note: There is some performance penalty associated with assembly bind failure logging.<br/>To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].</p> <p>   --- End of inner exception stack trace ---</p> <p><br/>************** Loaded Assemblies **************<br/>mscorlib<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Office.Runtime.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0.dll</a><br/>----------------------------------------<br/>System<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll</a><br/>----------------------------------------<br/>System.Core<br/>    Assembly Version: 3.5.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll</a><br/>----------------------------------------<br/>System.AddIn<br/>    Assembly Version: 3.5.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0<br/>    Assembly Version: 9.0.0.0<br/>    Win32 Version: 9.0.30729.4130<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll</a><br/>----------------------------------------<br/>System.Windows.Forms<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll</a><br/>----------------------------------------<br/>System.Drawing<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll</a><br/>----------------------------------------<br/>System.Deployment<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll</a><br/>----------------------------------------<br/>System.Configuration<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll</a><br/>----------------------------------------<br/>System.Xml<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll</a><br/>----------------------------------------<br/>System.Security<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll</a><br/>----------------------------------------<br/>System.Xml.Linq<br/>    Assembly Version: 3.5.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll</a><br/>----------------------------------------<br/>System.AddIn.Contract<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.AddIn.Contract/2.0.0.0__b03f5f7f11d50a3a/System.AddIn.Contract.dll</a><br/>----------------------------------------</p> <p> </p> <p>Event Xml:<br/>&lt;Event xmlns=&quot;<a href="http://schemas.microsoft.com/win/2004/08/events/event">http://schemas.microsoft.com/win/2004/08/events/event</a>&quot;&gt;<br/>  &lt;System&gt;<br/>    &lt;Provider Name=&quot;VSTO 4.0&quot; /&gt;<br/>    &lt;EventID Qualifiers=&quot;49154&quot;&gt;4096&lt;/EventID&gt;<br/>    &lt;Level&gt;2&lt;/Level&gt;<br/>    &lt;Task&gt;0&lt;/Task&gt;<br/>    &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;<br/>    &lt;TimeCreated SystemTime=&quot;2009-11-23T13:44:17.000000000Z&quot; /&gt;<br/>    &lt;EventRecordID&gt;2778&lt;/EventRecordID&gt;<br/>    &lt;Channel&gt;Application&lt;/Channel&gt;<br/>    &lt;Computer&gt;w7TCOForGregg&lt;/Computer&gt;<br/>    &lt;Security /&gt;<br/>  &lt;/System&gt;<br/>  &lt;EventData&gt;<br/>    &lt;Data&gt;Customization URI: <a>file:///C:/Program</a> Files (x86)/Company/AddInName for Outlook/Company.AddInName.Outlook.vsto<br/>Exception: Customization could not be loaded because the application domain could not be created.</p> <p><br/>************** Exception Text **************<br/>Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---&amp;gt; System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\Company\AddInName for Outlook\Company.AddInName.Outlook.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.<br/>File name: 'file:///C:\Program Files (x86)\Company\AddInName for Outlook\Company.AddInName.Outlook.dll'<br/>   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.LoadFrom(String assemblyFile)<br/>   at System.AddIn.Hosting.ActivationWorker.Activate()<br/>   at System.AddIn.Hosting.AddInActivator.ActivateInAppDomain[T](AddInToken pipeline, AppDomain domain, AddInControllerImpl controller, Boolean weOwn)<br/>   at System.AddIn.Hosting.AddInActivator.Activate[T](AddInToken token, AddInEnvironment environment)<br/>   at System.AddIn.Hosting.AddInToken.Activate[T](AddInEnvironment environment)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, AddInToken addInToken, String assemblyName, String[] entryPoints)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, AddInToken addInToken, String assemblyName, String[] entryPoints)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.LoadMafPipeline(AppDomain newDomain, IntPtr hostServiceProvider, AddInInformation info, EntryPoints requestedEntryPoints, OfficeApp officeApplication, OfficeVersion officeVersion, IntPtr&amp;amp; executor)<br/>   at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr&amp;amp; executor)</p> <p>WRN: Assembly binding logging is turned OFF.<br/>To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br/>Note: There is some performance penalty associated with assembly bind failure logging.<br/>To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].</p> <p>   --- End of inner exception stack trace ---</p> <p><br/>************** Loaded Assemblies **************<br/>mscorlib<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Office.Runtime.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0.dll</a><br/>----------------------------------------<br/>System<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll</a><br/>----------------------------------------<br/>System.Core<br/>    Assembly Version: 3.5.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll</a><br/>----------------------------------------<br/>System.AddIn<br/>    Assembly Version: 3.5.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0<br/>    Assembly Version: 10.0.0.0<br/>    Win32 Version: 10.0.20825.1<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll</a><br/>----------------------------------------<br/>Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0<br/>    Assembly Version: 9.0.0.0<br/>    Win32 Version: 9.0.30729.4130<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll</a><br/>----------------------------------------<br/>System.Windows.Forms<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll</a><br/>----------------------------------------<br/>System.Drawing<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll</a><br/>----------------------------------------<br/>System.Deployment<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll</a><br/>----------------------------------------<br/>System.Configuration<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll</a><br/>----------------------------------------<br/>System.Xml<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll</a><br/>----------------------------------------<br/>System.Security<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll</a><br/>----------------------------------------<br/>System.Xml.Linq<br/>    Assembly Version: 3.5.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll</a><br/>----------------------------------------<br/>System.AddIn.Contract<br/>    Assembly Version: 2.0.0.0<br/>    Win32 Version: 3.5.30729.4926 built by: NetFXw7<br/>    CodeBase: <a>file:///C:/Windows/assembly/GAC_MSIL/System.AddIn.Contract/2.0.0.0__b03f5f7f11d50a3a/System.AddIn.Contract.dll</a><br/>----------------------------------------</p> <p><br/>&lt;/Data&gt;<br/>  &lt;/EventData&gt;<br/>&lt;/Event&gt;</p><hr class="sig">Sasa Tomicic &lt;--&gt; MCTS WSS 3.0, MCPD EAD... www.teamcompanion.comMon, 23 Nov 2009 14:57:57 Z2009-11-25T15:08:29Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a560759d-4f45-4eb0-a218-2b6effb66dabhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a560759d-4f45-4eb0-a218-2b6effb66dabcrk001http://social.msdn.microsoft.com/Profile/en-US/?user=crk001how to drag and drop the date from the excel custom pane to excel active cell or work sheet in vstoHi,<br/><br/>I have a application like creating a custom pane in the excel 2007 using vsto. I added a custom pane i.e., user control...it is having some data...i should be able to drag and drop the selected item from the user control(i.e., custom pane) to excel active sheet active cell or active worksheet where i droped<br/><br/>pls reply with solution<br/><br/><br/>It is very immediate req...pls help meTue, 24 Nov 2009 12:38:18 Z2009-11-25T14:18:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/53768d2d-4d72-4be8-9b1b-38850ae62649http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/53768d2d-4d72-4be8-9b1b-38850ae62649mrx88http://social.msdn.microsoft.com/Profile/en-US/?user=mrx88Auto complete AutoText entries in Word 2007I have a client whose workflow heavily relies on the use of autotext. They currently use Word 2003 which shows a preview of the autotext as they type. I am migrating their macros to Word 2007/20010 VSTO but am unable to provide them with the same autotext functionality in the newer versions of Word.<br/> I am aware that autotext is supported in 2007/2010 versions of Word as building blocks and autocomplete is activated by pressing the F3 key. However it is not possible for them to remember all their abbreviations for thier many autotext entries and they rely on the preview of the autotext as they type. <br/> <br/> How can I replicate Word 2003 autotext functionality in Word 2007/2010 and enable autocomplete of autotext with autopreview?<br/> <br/>Wed, 25 Nov 2009 02:58:28 Z2009-11-25T14:07:26Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/4ccfa48d-1920-4bec-8025-43b456190ec8http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/4ccfa48d-1920-4bec-8025-43b456190ec8Yst Yanghttp://social.msdn.microsoft.com/Profile/en-US/?user=Yst%20YangWhere can I find the Formula Bar ObjectModel and related formula bar functions in VSTO?Hi everyone,<br/><br/>            Where can I find the Formula Bar ObjectModel and related formula bar functions in VSTO? I have tried to searched this for about 3 days, can any one help?Wed, 25 Nov 2009 06:54:48 Z2009-11-25T13:56:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/1ce7c89c-ad58-4542-9079-ecb93191d8d4http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/1ce7c89c-ad58-4542-9079-ecb93191d8d4kmarimahttp://social.msdn.microsoft.com/Profile/en-US/?user=kmarimaHOW TO GET HIGHLIGHTED TEXT ON THE ACTIVE DOCUMENTI'm trying to get the text i highlight on the active word document into a variable in c#. I'm wondering how to work it out because, people talk about range and stuff like that, HELP MEWed, 25 Nov 2009 08:02:31 Z2009-11-25T13:49:02Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/673fcaa0-dfc4-4d15-802e-29938dae04c6http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/673fcaa0-dfc4-4d15-802e-29938dae04c6Peter Kieuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Peter%20KieuUser-defined function (UDF) using multi-threading and Asynchoronous socket?Could someone answer me about User-defined function (UDF) using multi-threaded mode and asynchronous socket:<br/> <br/> <strong>Can Excel allow formulas using many UDFs to update data in Cells simultaneously? </strong> <br/> <br/> Namely, UDFs use background threads and/or asynchronous socket to retrieve  data from a server.<br/> Accordingly, if 2 cells contain 2 UDFs to get data from server(s), whether they must wait for each other to finish or independent retrieving data.<br/> <br/> As far as I know, Excel will lock all other cells before the current cell complete getting data! This makes the formula references to be in order and the calculation stable.<br/> <br/> I have a dialog box, it will add some UDF formula into cells. These UDFs take time to wait server to answer then fill returned values (of course, plus formulas) in cells, but I want to work in other cells without waiting.<br/> <br/> Does it exist a possible solution to overcome the delay of GUI interaction and UDF formulas?<br/> <br/> So far, I have not tested the solution of UDFs using background thread and socket in asynchronous mode.<br/> <br/> Please share your experience about this.<br/> <br/> Sincerely yours<br/> <br/> Peter Kieu<br/>Wed, 25 Nov 2009 08:13:34 Z2009-11-25T13:46:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/39222192-3ddb-4a9f-a0ec-f440a55dcfc5http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/39222192-3ddb-4a9f-a0ec-f440a55dcfc5MDX Novicehttp://social.msdn.microsoft.com/Profile/en-US/?user=MDX%20NoviceUnsinatlling the previous version of addin <p>I have made a VSTO word addin in VS2007 and made an insatllable for it.It deploys successfully the first time on any other machine .<br/>If later I try to install a modified version of the same addin ,it says that the -<br/>&quot;The customization cannot be installed because another version is currently installed and cannot be upgraded from this location. To install this version of the customization, first use Add or Remove Programs to uninstall this program:&quot;<br/>So i go and remove it from &quot;Add/remove program&quot; and then insatll my modified addin.<br/>I want my code or by config setting to check everytime before installing a new version of the addin to check that if previous version is existing remove it and then insatll the new version.So basically I need to do away with the manual activity of removing previous vesrion of addin.<br/>Is it posssible ,if yes let me know how.</p> <p>Thanks<br/>Anand</p>Wed, 25 Nov 2009 04:01:56 Z2009-11-25T13:46:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/581a6f6b-700d-4f0c-a811-ba7f55e43449http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/581a6f6b-700d-4f0c-a811-ba7f55e43449kevinbest0702http://social.msdn.microsoft.com/Profile/en-US/?user=kevinbest0702How can I customize the built-in TaskPane in Word using VSTO?Hi guys,<br/><br/>I need your help. <br/><br/>I have a document which is already protected by protection functionality in Word. When I open the doc and try to edit the area which I don't have the right to edit, a taskpane appeared in the right of the document. There are two buttons in the taskpane: &quot;Find Next Region I Can Edit&quot; &amp; &quot;Show All Regions I Can Edit&quot;. <br/><br/>I really don't to see this happen. It's quite annoying. Is there anyone can tell me how can I customize the behavior of the built-in taskpane in Word using VSTO 2005? How can I get the <span class=Apple-style-span style="text-transform:none;text-indent:0px;border-collapse:separate;font:medium Simsun;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px"><span class=Apple-style-span style="font-family:arial, sans-serif;white-space:pre-wrap;font-size:13px">designated </span></span>TaskPane Object using VSTO like &quot;Restrict Formatting and Editting Taskpane&quot;?<br/><br/>Thanks!<br/><br/>Best Regards,<br/>KevinWed, 25 Nov 2009 06:32:09 Z2009-11-25T13:42:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/6e49ffe1-2640-489a-bddb-e9a8774de7cchttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/6e49ffe1-2640-489a-bddb-e9a8774de7ccDharamvirhttp://social.msdn.microsoft.com/Profile/en-US/?user=DharamvirUnable to get collection of hyperlink in excel using Microsoft.office.interop.excelHi:<br/> <br/> I'm trying to get all the hyperlinks in a column. I know there is one way by iterating through whole excel row by row. As I don't know size of excel, so don't want to go for.<br/> Another way is to get all the hyperlinks in a column ( as i knows that it will come only in one column.). I'm able to get the hyperlink in a column. <br/> Now my job is to put in DB, by inserting the hyperlinks with other data in a column. But here a little twist. I'm unable to convert the hyperlink object to either a string object or a an object. If I'm try to do same, I gets an error.<br/> Could any one tell me how to get a collection of hyperlinks, in an excel column, in a collection.<br/> <br/> Dharamvir<hr class="sig">DSWed, 25 Nov 2009 10:58:19 Z2009-11-25T13:30:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a8accabe-7076-4b52-b823-12f40da14ed5http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a8accabe-7076-4b52-b823-12f40da14ed5JaiJashttp://social.msdn.microsoft.com/Profile/en-US/?user=JaiJasInfopath Textbox_changed Event not firedHi<br/>I have a native infopath form with code behind. I publish the form as content type to a sharepoint forms library. Once the form is filled, the filled form is saved in the same forms library using data connections.When the user is filling out the form from the template, the event is fired. For example:<br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>public</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">void</span></span><span style="font-size:x-small"> txtPMEmail_Changed(</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">object</span></span><span style="font-size:x-small"> sender, </span><span style="font-size:x-small;color:#008080"><span style="font-size:x-small;color:#008080">XmlEventArgs</span></span><span style="font-size:x-small"> e){Section3Instructions();}<br/><br/>But if I open the saved form from the forms library and make some changes in the text box, the txtPMEmail_Changed event is not fired. <br/><br/>Thanks in advance<br/>Jas</span></p>Wed, 25 Nov 2009 11:46:14 Z2009-11-25T13:26:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/653e3e8f-314b-42ed-be6f-34c436cb340fhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/653e3e8f-314b-42ed-be6f-34c436cb340fRajat Rainahttp://social.msdn.microsoft.com/Profile/en-US/?user=Rajat%20RainaVSTO compilation from command line without using MSBuildIs there any command or set of commands that I can use from the command line to build an Office 2007 Addin written in C#? I am using VS2008 SP1 Professional edition. <div><br/></div> <div>Using the CSC command line, I am able to generate the dll.</div> <div><br/></div> <div>However, I also require the &quot;VSTO&quot; and &quot;MANIFEST&quot; files to be generated. Is there any option that I can provide to CSC or any other command line (except MSBuild) that I can use?</div> <div><br/></div> <div><br/></div>Wed, 25 Nov 2009 11:25:56 Z2009-11-25T11:25:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a01c98b0-69e1-4da6-b262-716d1252efd7http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/a01c98b0-69e1-4da6-b262-716d1252efd7Mohan Kumar Karunakaranhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mohan%20Kumar%20KarunakaranSharePoint deployment of VSTO Document Level Customization - doesn't get installedHi,<br/><br/>I have developed a very simple document level word template using VSTO v3. I followed the steps for provided in the deployment article.<br/><br/>When I upload the 'Document Template' to SharePoint library, the customization didn't show up and there is no error to figure out why it is not loading. However, when I run the template from Shared location, the customization installs correctly. I am not sure if I miss something silly on SharePoint side.<br/><br/><strong>Steps I followed:</strong><br/><br/>1. Created a document template from VSTO v3 and added a ribbon control and a button to the ribbon.<br/>2. Then in the publish tab of the solution, provided the 'Shared folder' location in both 'Publishing Folder Location' &amp; 'Installation Folder URL'.<br/>3. Published the solution to the shared location<br/>4. Uploaded the 'Document Template' to SharePoint library<br/>5. Added both 'SharePoint library' &amp; 'Shared folder' location to Trusted Locations in Word<br/><br/>After completing all these steps, when I open the template from SharePoint library, the customization doesn't get installed.<br/><br/>Any help would be much appreciated. <hr class=sig> MohanWed, 18 Nov 2009 06:54:26 Z2009-11-25T11:09:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d52015b2-e91a-46f3-a26f-8ea375caea2dhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d52015b2-e91a-46f3-a26f-8ea375caea2dmatixschttp://social.msdn.microsoft.com/Profile/en-US/?user=matixscHow can I set Outlook tasks to read-only programmatically?<div class=container> <div class=body>Hi,<br/><br/>Does anyone know if its possible to set Outlook  task to read-only programmatically?<br/>Thanks in advance!<br/><br/>Regards, matixsc</div> </div>Tue, 24 Nov 2009 10:09:45 Z2009-11-25T10:54:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/05cbc8cf-54d0-4b64-912a-219f180bb6c6http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/05cbc8cf-54d0-4b64-912a-219f180bb6c6Gikxyhttp://social.msdn.microsoft.com/Profile/en-US/?user=GikxyHow to make a VSTO add-in impliment the IRDTServer interfaceHi,<br/><br/>How does one use a VSTO add-in class to implement an RdtServer. I'd like a get a handle to the application object of my ThisAddin class and use it to call the WorksheetFunction.RTD method in Excel 2007. I have tried <br/><br/>Public partial class ThisAddin : IRtdServer<br/><br/>but none of the interface events fire when they should. An option is to implement a shared add-in using IDTExtensibility2 interface and I use the OnConnection method to access the Application object. But I have to create a shim for isolation and so on. The class signature would be <br/><br/>public class MyRtd : IDTExtensibility2, IRtdServer<br/><br/>How do I do the same with a VSTO add-in? Is it possible? All implementations of RTDServers i've seen online use the shared add-in/IDTExtensibility2 method. Any help would be appreciated.<br/><br/>What a brilliant forum!<br/><br/>Gikx<br/><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><br/><br/></span></span>Wed, 25 Nov 2009 10:01:15 Z2009-11-25T10:01:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/8c37d0ff-59f4-4271-838f-fb31b51b8b9bhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/8c37d0ff-59f4-4271-838f-fb31b51b8b9bHenerhttp://social.msdn.microsoft.com/Profile/en-US/?user=HenerHow can replace the blank folder icon with user-defined one?<p>I am working on add-in project to OL 2007, which is a VB project. We create a new page on appointment form, but we can not find the entry to replace the ICon on the toolbar, by default a blank folder icon is used. Is possible to replace the default icon on? <br/><br/><br/>Thanks</p>Tue, 24 Nov 2009 07:37:03 Z2009-11-25T09:34:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/67df0cc5-7457-43fd-a495-9b67963a845ehttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/67df0cc5-7457-43fd-a495-9b67963a845exueqianhttp://social.msdn.microsoft.com/Profile/en-US/?user=xueqianVSTO startup slowly "generatePublisherEvidence" does not workHi,<br/> <br/> I create an addin for microsoft project 2003 and 2007 with vsto 2005se and vsto3.0. There're 3 projects in the solution. Project 2003 addin, project 2007 addin and a common project. Project 2003 addin and 2007 addin share the same forms, logics which are in the common project. Project 2003 addin references vsto2005se while 2007 references vsto3. <br/> <br/> For the 2003 addin,<br/> To speed up the start up of the plugin. I change the the app.config<br/> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br/> &lt;configuration&gt;<br/>   &lt;runtime&gt;<br/>     &lt;generatePublisherEvidence enabled=&quot;false&quot;/&gt;<br/>   &lt;/runtime&gt;<br/> &lt;/configuration&gt;<br/> <br/> But when I use network profiling tool to monitor the network connections. The addin still try to access crl.microsoft.com. If I disable the &quot;Check for Publisher's certificate revocation&quot; in internet options. the addin does not access crl.microsoft.com any more.<br/> <br/> Why the generatePublisherEvidence does not work?<br/> <br/> Following is the files contained in the addin.<br/> PPM_MSP_Plugin2003.dll.manifest<br/> PPM_MSP_Plugin2003.dll<br/> PPM_MSP_Plugin2003.dll.config<br/> PPM_MSP_Plugin2003_SetSecurity.dll<br/> PPM_MSP_Plugin_Common.dll<br/> log4net.dll<br/> <br/> &quot;PPM_MSP_Plugin2003.dll.manifest&quot; is the deployment file of the addin. &quot;PPM_MSP_Plugin2003.dll&quot; is the addin. &quot;PPM_MSP_Plugin2003.dll.config&quot; contains the generatePublisherEvidence parameter. &quot;PPM_MSP_Plugin_Common.dll&quot; contains the forms, logics of the addin. <br/> <br/> Am I do anything wrong?.<br/> <br/> Thanks.<br/> <br/> <br/> <br/> <br/>Wed, 25 Nov 2009 07:47:03 Z2009-11-25T09:28:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/610f54d4-40d7-4946-8c1d-89fb8d954c88http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/610f54d4-40d7-4946-8c1d-89fb8d954c88spittershttp://social.msdn.microsoft.com/Profile/en-US/?user=spittersHow to deselect mail item from ActiveExplorer().SelectionHello,<br/><br/>I'm using <br/><span style="color:#008000;font-size:x-small"><span style="color:#008000;font-size:x-small"><font size=2 color="#008000"><font size=2 color="#008000"> <p>//Get current selected items.</p> </font></font></span><font size=2 color="#008000"> <p> </p> </font></span> <p><span style="font-size:x-small">Outlook.</span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">ApplicationClass</span></span><span style="font-size:x-small"> app = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="font-size:x-small"> Outlook.</span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">ApplicationClass</span></span><span style="font-size:x-small">();<br/>Outlook.</span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Selection</span></span><span style="font-size:x-small"> sel = app.ActiveExplorer().Selection;<br/><br/>to get the selected mailitems and<br/>use a foreach loop to write the mails to a directory.<br/><br/>when the copying is finished i want to remove the copied item from the selection.<br/><br/>How can i do that?<br/><br/>Thanks,<br/><br/>Hans</span></p>Mon, 23 Nov 2009 20:35:35 Z2009-11-25T13:04:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/28abc022-571e-42e0-8ad9-21a5449a543dhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/28abc022-571e-42e0-8ad9-21a5449a543dSriSonyhttp://social.msdn.microsoft.com/Profile/en-US/?user=SriSonyAdding a new Window to outlook using Outlook Addin in Visual Studio 2008Hi, <br/><br/>I am trying to customise my outlook to display an extra window/column.We have common windows, like List of folders on the left, Inbox in the right. My requirement is to add another window/column after the inbox, in the right side so that when i open outlook it will display 3 columns.<br/><br/>I tried adding a FormRegion , but that is getting displayed only when the readingpane is opened.I also tried using windows forms, but it opens as a new window.I want the window inside outlook itself.<br/><br/>Any help is appreciated. Tue, 24 Nov 2009 06:41:45 Z2009-11-25T08:22:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/eff64319-9d20-4ec3-b661-95cbd78ce5f8http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/eff64319-9d20-4ec3-b661-95cbd78ce5f8Bernie22http://social.msdn.microsoft.com/Profile/en-US/?user=Bernie22Finding mage.exe on a client machineHi All, <br/> <br/> I recently sought advice on dealing with an identity error when re installing a VSTO addin on a client machine (see http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d7d57446-f0b2-4b9e-96b8-966218306ddd)<br/> <br/> I was offered the following suggestions.<br/> <br/> 1. Open command prompt by inputting <strong>cmd</strong> in Run from Start menu.<br/> 2. Switch to the path which mage.exe is in. In my side, the path is C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin. Input &quot;<strong>cd</strong> C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin&quot;.<br/> 3. Now input <strong>Mage.exe -cc</strong> . It will appears a notice: Application cache cleared.<br/> <br/> My problem is that my client claims that the sub directory C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin does not exist on his computer. Does this subdirectory exist only on the developer PC? If so, how can the appkication cache be cleared on my client's PC?<br/> <br/> Best regards,<br/> BernieThu, 19 Nov 2009 21:29:47 Z2009-11-25T07:55:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/fadc93f4-0e97-4038-a4e9-58631d04cff5http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/fadc93f4-0e97-4038-a4e9-58631d04cff5丑猪儿http://social.msdn.microsoft.com/Profile/en-US/?user=%u4e11%u732a%u513fHow to load the GAL into dropDown in Ribbon???<p>I have created a dropDown in ribbon of outlook, now I need load the name of employees from Global Address List into it.<br/>I use the method as follow, but it works very very very solw, somebody help me?   Thanks!<br/><br/>private void myRibbon_Load(object sender, RibbonUIEventArgs e)<br/>        {<br/>            Outlook.Application objOutlook = new Outlook.Application();<br/>            Outlook.NameSpace objNS = objOutlook.GetNamespace(&quot;MAPI&quot;);<br/>            Outlook.AddressList objAddressList = objNS.GetGlobalAddressList();<br/>            <br/>            for (int i = 1; i &lt; objAddressList.AddressEntries.Count - 1; i++)<br/>            {<br/>                Outlook.AddressEntry addrEntry = objAddressList.AddressEntries[i];</p> <p>                RibbonDropDownItem ResponsibleGAL = new RibbonDropDownItem();<br/>                ResponsibleGAL.Label = addrEntry.Name.ToString();<br/>                dropDown1.Items.Add(ResponsibleGAL);<br/>            }</p>Tue, 24 Nov 2009 05:05:03 Z2009-11-25T07:27:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/11c38106-b3a0-4421-986d-42c8ef713385http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/11c38106-b3a0-4421-986d-42c8ef713385Mauricio Marzolhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mauricio%20MarzolPrint Outlook attachment from add-in codeHi all,<br/><br/>I am developing an Outlook add-in and want to add a feature that prints out attachments of e-mail messages.<br/>Exactly as Outlooks does when you go to the File menu, Print... and check the &quot;<strong>Print attached files. Attachments will print to the default printer only</strong>&quot; checkbox.<br/><br/>Does anyone has a code sample about how to achieve that, after I have the EmailItem object selected?<br/><br/>Many thanks!<br/>Mauricio.-Mon, 23 Nov 2009 15:20:12 Z2009-11-25T06:30:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2ebd487f-99d1-4547-b7c4-c8eeaf89fdbdhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2ebd487f-99d1-4547-b7c4-c8eeaf89fdbdNazzahttp://social.msdn.microsoft.com/Profile/en-US/?user=NazzaMultiple BCC using Interop.OutlookHi, <div>I need to add some recipients to a Mail Object in the BCC space.</div> <div><br/></div> <div>I use <em><strong>Recipients.Add</strong></em> syntax (but the addresses are added to <em><strong>To </strong></em>space).</div> <div>If I use <em><strong>oMsg.Bcc</strong></em> syntax the &quot;;&quot; character is not inserted (??)</div> <div><br/></div> <div>Do you have any idea about the problem ?</div> <div><br/></div> <div><br/></div> <div> <div style="color:Black;background-color:White"> <pre>Microsoft.Office.Interop.Outlook.Application oApp = <span style="color:Blue">new</span> Microsoft.Office.Interop.Outlook.Application(); Microsoft.Office.Interop.Outlook.MailItem oMsg = (Microsoft.Office.Interop.Outlook.MailItem)oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem); <span style="color:Blue">foreach</span> (ListViewItem _lvi <span style="color:Blue">in</span> lvwPeople.Items) { <span style="color:Blue">if</span> (_lvi.SubItems[20].Text.Trim() != <span style="color:Blue">string</span>.Empty) { <span style="color:Green">//oMsg.Bcc += _lvi.SubItems[20].Text.Trim() + &quot;;&quot;;;</span> oMsg.Recipients.Add(_lvi.SubItems[20].Text.Trim()); } } oMsg.Display(<span style="color:Blue">false</span>); oMsg = <span style="color:Blue">null</span>; oApp = <span style="color:Blue">null</span>; </pre> </div> </div>Mon, 23 Nov 2009 15:03:54 Z2009-11-25T06:04:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/368f6c82-6183-45c8-be42-e5a2e826542dhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/368f6c82-6183-45c8-be42-e5a2e826542dFast_EddieDhttp://social.msdn.microsoft.com/Profile/en-US/?user=Fast_EddieDHow to use Outlook Mailfolder as a DataSource to GridView controlUsing Outlook Interop, can I directly bind a gridview control to display my messages  (for example I'd like to display my Inbox messages for a certain date.  Sample code show below.<br/><br/>If so, I'm looking for how to select a message and open outlook to display or edit the message.<br/><br/>Here is some sample code,  perhaps someone can help me fill in the blanks...<br/><br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>Dim</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> oApp </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">As</span></span><span style="font-size:x-small"> Outlook.Application = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">New</span></span><span style="font-size:x-small"> Outlook.Application()<font size=2> <p> </p> </font></span></p> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Dim</span></span><span style="font-size:x-small"> oNS </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">As</span></span><span style="font-size:x-small"> Outlook.NameSpace = oApp.GetNamespace(</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;Mapi&quot;</span></span><span style="font-size:x-small">)</span></p> <span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Dim</span></span><span style="font-size:x-small"> oInbox </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">As</span></span><span style="font-size:x-small"> Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)</span></p> <span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Dim</span></span><span style="font-size:x-small"> selecteddate </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">As</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">String</span></span></p> <span style="font-size:x-small"><font size=2> <p>selecteddate = Format(</p> </font></span> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Me</span></span><span style="font-size:x-small">.SelectedDate.Value, </span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;yyyy-MM-dd&quot;</span></span><span style="font-size:x-small">)<br/><span style="font-size:x-small"><font size=2> <p>oInboxItems = oInboxItems.Restrict(</p> </font></span> <p><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;[ReceivedTime] &gt;= '&quot;</span></span><span style="font-size:x-small"> &amp; selecteddate &amp; </span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;'</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">'&quot;</span></span><span style="font-size:x-small">) <p> </p> <font size=2><font size=2> <p> </p> </font></font></span></p> <font size=2> <p> </p> </font></span></p> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Me</span></span><span style="font-size:x-small">.dgvInbox.DataSource = ?????<font size=2> <p> </p> </font></span> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Me</span></span><span style="font-size:x-small">.dgvInbox.DataMember = ?????</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"><font size=2 color="#a31515"><font size=2 color="#a31515"> <p> </p> </font></font><br/>Manually I've been able to populate a datatable by enumerating each mail item and bind to it but looking for a more direct approach.  <br/><br/>Is there an Outlook Control?<br/><br/></font></font></span><font size=2 color="#0000ff"><font size=2 color="#0000ff"><font size=2 color="#a31515"> <p> </p> </font><br/>Manually I've been able to populate a datatable by enumerating each mail item and bind to it but looking for a more direct approach.  <br/><br/>Is there an Outlook Control?<br/><br/></font></font></span></p> <font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p><br/>Manually I've been able to populate a datatable by enumerating each mail item and bind to it but looking for a more direct approach.  <br/><br/>Is there an Outlook Control?<br/></p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span></p> <p> </p><hr class="sig">EdFri, 20 Nov 2009 18:52:39 Z2009-11-25T02:25:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2d06c7be-0e74-494c-8d53-a8406e84adb1http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2d06c7be-0e74-494c-8d53-a8406e84adb1slimkehttp://social.msdn.microsoft.com/Profile/en-US/?user=slimkedynamically adding checkboxes to a RibbonGroupBoxHello,<br/><br/>i'm having problems using a RibbonControlGroup to which i want to add several checkboxes dynamically. The RibbonControlGroup is in a Grid in a RibbonGroup! I get the CheckBoxes to be added into the RibbonControlGroup by using some code like this:<br/><span style="font-size:x-small"><br/> <pre lang="x-c#">RibbonCheckBox me_chkBox= new RibbonCheckBox(); RibbonCommand Command = new RibbonCommand(); me_chkBox.Name = &quot;chkBox_&quot; + myDokTyp; Command.LabelTitle = myDokTyp; me_chkBox.Command = Command; this.me_controlGroup.Controls.Add(me_chkBox); </pre> <p><br/>when i use this code my checkboxes are visible in the middle of the RibbonControlGroup one by one from left to right like this:<br/><br/><em>check1 check2 check3<br/></em><br/>if i use <span style="font-size:x-small">me_chkBox.VerticalAlignment = </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">VerticalAlignment</span></span><span style="font-size:x-small">.Top; for each checkbox before adding it to the GroupBox the checkboxes aren't starting in the middle of the RibbonControlGroup , but from the Top (which is good) but as well they are ordered from left to right.</span><br/><br/>In fact i want them to be ordered from the top to the bottom on the left side of the RibbonControlGroup like this:<br/><br/><em>check1<br/>check2<br/>check3<br/><br/></em>What do i have to do to get the checkboxes to be ordered in the correct order? (from my point of view)<br/>If there is a better way for getting controls dynamically added to a Grid inside a RibbonGroup pls let me know!!<br/><br/><span style="text-decoration:underline">I'm using:</span><br/>Windows XP Professional<br/>Microsoft Visual Studio 2008 Version 9.0.30729.1 SP<br/>Microsoft .NET Framework Version 3.5 SP1<br/>RibbonControlsLibrary 3.5.31016.1</p> <font size=2> <p>I hope you understand my problem!</p> </font></span> <p> </p>Tue, 17 Nov 2009 08:56:13 Z2009-11-25T01:48:41Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/71ded3c7-3f9a-4c05-8e64-e49f1286fbffhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/71ded3c7-3f9a-4c05-8e64-e49f1286fbfftyskenhttp://social.msdn.microsoft.com/Profile/en-US/?user=tyskenCan't pass parameters with a UDFHello,<br/><br/>I have tried to make my own udf with the instructions from Eric Carter's post &quot;Writing user defined functions for Excel in .NET&quot; (<a href="http://blogs.msdn.com/eric_carter/archive/2004/12/01/writing-user-defined-functions-for-excel-in-net.aspx">http://blogs.msdn.com/eric_carter/archive/2004/12/01/writing-user-defined-functions-for-excel-in-net.aspx</a>). <br/><br/><br/>I get a strange problem, when I pass values there is no problem (=MultiplyNTimes(1;2;3)    == 8 ) bu when I pass a refrence to another cell i get #value! ( =MultiplyNTimes(A1;2;3) ). <br/><br/>I'm using Excel 2007 and VS 2008.<br/><br/>Is there any one that has got this problem and what is the solution? <br/><br/>Thank you!<br/><br/>--JohanTue, 24 Nov 2009 23:48:06 Z2009-11-24T23:48:07Z