TimMulholland's Q&A profile
Visual Studio Tools for Office Microsoft OutLook Plugin Problems
hi, I am developing a plugin with the help of the document on the following link http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/ol03csharp.asp I follow all the steps mentioned in the document and finally build and install . everythings goes smooth till this point . But after this when I launch the outlook my plugin does not appear in the toolbar. Do I require to do some additional steps in order to register with outlook.I have no idea what I am missing. can anyone help me out with this problem. Regards, jerald The working directory is best to be configured to the loca ...Show All
.NET Development Exception Handling DO NOT WORK!! Help Please!@!
Hi. I want that you think with me... When i put a try-catch exception handler block in an application what i expect from it i expect that it will handle the error and begin the normal flow of the application. Now, you aswer me, why it doesn’t work in this scenary : I have one Form1 (Project > Add New > Form, nothing different), and another Form2 and one Form3. i’m proud of my creativity for names. Form1 : private void Form1_Load( object sender, EventArgs e ) { try { new Form2().Show(); } catch (Exception ex) { MessageBox.Show("Error calling form 2" + ex.Message ...Show All
Windows Forms I have released the nData Open Source Project...
http://nData.CommunityAsp.Net What is nData nData is an Open Source Project for .Net 2.0 that was created out of the boredom of writing all the simple, repetitive code that is necessary in any kind of application. Basically, I found myself writing the exact same code, to do the exact same things, over, and over, and over, and over, and over, and- you get the idea. nData is a single C# file consisting of a number of static Data Access Methods that are extremely commonplace in programming, and extremely boring. I have just taken much of the code that is necessary to pro ...Show All
Windows Forms SortCommand event handler does not fires for dynamically added columns in datagrid
Hi, Could somebody help me please with this problem: SortCommand event handler does not fires for dynamically added columns in datagrid. Main settings: Me.dgBrowser.AllowSorting = True Me.dgBrowser.AutoGenerateColumns = False Adding new column to datagrid: Dim NewColumn As New BoundColumn   ...Show All
SQL Server No duplicates exist but get Msg 2627, Cannot insert duplicate key in object
On SQL Server 2000, a transaction of thousands of INSERTs contains these three consecutive INSERT statements: INSERT INTO PARAMETER_ATTRIBUTES ( ID , MIN_VALUE , MAX_VALUE ) VALUES ( '05b3b88a-f0f2-4e7e-a82f-73a7bd177a96' , 0 , 1 ) INSERT INTO PARAMETER_ATTRIBUTES ( ID , MIN_VALUE , MAX_VALUE ) VALUES ( '05e51bee-ac3b-4257-90f1-f34adcb185cb' , 0 , 128 ) INSERT INTO PARAMETER_ATTRIBUTES ( ID , MIN_VALUE , MAX_VALUE ) VALUES ( '05f33ded-979b-41ee-9d6c-ac5adc4d8635' , - 1000000000 , 1000000000 ) The transaction fails with a Msg 2627 error, Violation of PRIMARY KEY constraint 'ARR_Constraint2'. Cannot insert dup ...Show All
Visual C# Retrieve System Up Time Err:(input string was not in correct format)
I have a windows service program that checks the system up time. It works for most users that use it but a small few are getting this error: Exception: Input string was not in a correct format. Stack Trace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.Parse(String s, IFormatProvider provider) at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp) at System.Diagnostics.PerformanceCounterLib.get_NameTable() at System.Diagnostics ...Show All
Smart Device Development Smart device project debugging on actual device
Hi everyone I have recently flattened my machine and resinstalled everything from scratch I have visual studio 2005 and visual studio 2003 (I installed vs 2005 before vs 2003, this may have no bearing on things but I thought I would mention it). For some reason now when I debug a smart device project on the actual device none of the breakpoints are hit and I get the little exclamation saying that no symbols have been loaded. When I look in the modules window sure enough it has my exe listed and it also shows the pdb file and says that the symbols have been loaded. I thought I would see what happened if I tried to load ...Show All
Visual Studio Tools for Office Enable/disable popups in main menu
Hi; We have an Add-In where we need to enable/disable a couple of menu items based on the location of the caret in the document. As an example, think of the Cut menu item in Edit - it is only enabled if text is selected in the document. Is there any event or any other method where we can enable/disable the menu items just before the menu is displayed. Possibly an event that occurs when the user clicks on the main level menu that will cause it's menu to drop down At present we use the select change event. But this is a bad solution both because it is fired all the time so we are using a lot of CPU cycles and because it does not fire when the ...Show All
SQL Server Add new datasource C++ sqlexpress does not work
I have Visual C++ Express edition and SQL Express edition installed. When I try to add a datasource, the only two choices are Microsoft Access and SQL Server File. This SQL one does not work when I select it with an error that it was "Unable to open the physical file x.mdf. Operating system error 32: 32(The process cannot access the file because it is being used by another process.). An attempt to attach an auto-named database.... When I do my own System::Data::SqlClient::SqlConnection ^ c0; System::Data::SqlClient::SqlCommand ^ k0; System::Data::SqlClient::SqlDataReader ^ r0; things work fine. Do I need to get a $ edit ...Show All
Visual Studio Tools for Office Merging documents in Word
Hi, I would like to build an application that smartly merges several Word documents in a batch. Example: I have a folder called C:\TargetDocuments with the following docs : MyDoc1.doc , MyDoc2.doc and MyDoc3.doc . I would like to be able to merge them (and reformat them: font, header, footer, table of contents, etc...) in another document using VSTO 2005. My idea is to have a master document that enables to add Smart Tags for each document to be merged, with custom properties such as : the file path, the table of contents entry, etc ... Then a button in the action pane, lauched the process, and replaces the Smart Tags oc ...Show All
SQL Server SQL help request
Hello. I have two tables connected by a one-to-many inner join. The second table only has one field that i need. Take by example it is a status table. Items Table Status table id-------------------------/-- item_id name \ status price &nbs ...Show All
SQL Server Combine SUMs
How can I combine the 2 Sum amounts below. Basically teh 2 queries are exactly the same, just hitting 2 different tables (pdc and pdcdeleted) with the same structure: SELECT SUM(PQuery.Amount) as PDCs_IL FROM (SELECT c.name, c.customer, (SELECT Top 1 fd.Fee1 FROM FeeScheduleDetails fd where c.feeSchedule = fd.code) AS FeeSchedule, m.branch, pd.desk, ' ...Show All
Visual C# setting media (mp3, wma) file metadata
I am trying to read and write audio metadata (mp3/wma) using Shell extensions. Its very easy to Get metadata using "myFile.metadataitem = folder.GetDetailsOf(folderItem, n)" but i cant seem to find any methods to Set the values. can this be done in the shell if not, does anyone know an easy way of setting metdata tags ... i have parsed the verbs on an audio file but nothing lets me change the metadata... I think that manipulating properties may be a way forward but cant decipher the documentation to get and set them. Laurence Fass Codeproject has a good series of articles on working with audio in .net, including reading an ...Show All
Visual Studio Tools for Office VSTO Installation Problem
I'm having problems to create a new VSTO 2005 project. I installed the components in the following order: Office 2003, Office 2003 SP2, Visual Studio 2005 and VSTO 2005. I had not problems in the installation but when i try to create a new VSTO project (e.g. Word document) the wizard is launched and i select that i want to create a new document. Then after a few seconds an error message appears: The error message said that i have to clear the "disabled items" in the Help/About menu in office or reinstall the VSTO 2005. I have done the two things (the disabled items list is empty) and reinstalled the VSTO 2005 and i'm havin ...Show All
Visual C# calling C++ methods from C# and vice versa
I've got a C# project and a C++ project in the same solution. I want to be able to call C++ methods from C# and vice versa. Are there any guides for this (Visual Studio 2005) Make you class COM Visable, here are some article: Marshaling Data with COM Introduction to COM Interop Interop Marshaling Default Marshaling Behavior Marshaling Data with Platform Invoke Marshaling Data with COM Interop Interop Marshaling Overview Building COM Servers in .NET ...Show All
