David Ing's Q&A profile
SQL Server events raised by the report server when report is saved
there is possible how my scenario is: What I want is to be able to "catch" the event where the user saves or closes the report into the Report Builder, so that I can create the related class, and it has to be right when it happens, it can’t be later. It would also be useful if the event could identify the name and path of the report I just created. I am sorry if I am not able to be a little more clear regarding this subject, but I hope you understand what I want, and if there is no way to do it just let me know either way. Thanks for your help gerard ...Show All
Smart Device Development How to update SQL Server Mobile database from DataSet object
I have a DataSet object, created like this: DataSet NamesSet = new DataSet (); NamesSet.ReadXml(cNames); NamesSet.DataSetName = "NamesDataSet" ; Where cNames is the xml file created in another application. Now I need to transfer its contents to SQL Server Mobile database: updating existing rows, inserting new rows and deleting those records in database, which id's aren't in xml file. Is it possible Though, I'll be very glad to know how to update only. Something like this should do (connection and command set up skipped, look for sample on MSDN in needed): SqlCeDataAdapter da = new SqlCeDataAdapter(...); da.Update(NamesSet , "TableNameToUpdateHer ...Show All
Visual Studio Team System How to check for code comments (XML Docs) in methods and properties.
I am trying to write a custom rule to check for code comments (ie. XML Documentation) in FxCop. I found a property called Documentation in Method class. But it is always holding null value for all the methods and members. Can anyone help me out in writing this custom rule And i am also interested in finding all the method calls (method names) inside a method. Someone please tell me how to do that. hi, can you use Method.Documentation to get all the xml comment for a method and its parameters Thanks, Michael ...Show All
.NET Development System.Timers.Timer high resolution problem (C#)
I want to use System.Timers.Timer in my project as a metronom with the resolution of approx. 1ms interval value. When i tried, it works fine up to 10ms, but below that value, it doesn't work. in my sample application, i am using a count value which increases every tick and when the count reaches the value of 100, i invoke a function which updates the label1. When i use the interval as 10, label1 updates every 1 second as expected but when i reduce the interval value, the time for updating the label1 doesn't decrease. For example, when i set interval to 1ms, it still takes 1 second to update label1. Does System.Timers.Timer allows interval below 10 Or is there any timer which does this in .NET framework PS: I didnt set the Syncroni ...Show All
Windows Live Developer Forums The event is not fired in Windows Live Messenger
I meet the same problem as http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=712363&SiteID=1 But I do not understand the solution. I have edited the registry and the addin is showed to be lunched. The MessageBox inside the Initialize function is also showed. However, the event is not fired in MessengerClient. Thanks a lot public void Initialize(MessengerClient client) { this.m_client = client; client.AddInProperties.FriendlyName = "MyAddin"; m_client.StatusChanged += new EventHandler<StatusChangedEventArgs>(StatusChanged); client.IncomingTextMessage +=new EventHandler<IncomingTextMessageEventArgs>(IncomingTextMessage); client.OutgoingTextMessage += new EventHandle ...Show All
Visual C# List.ElementAt not functioning.....
I encounter the error : System.Collections.Generic.List<xxxx> does not contain a definition for 'ElementAt'. Althought after the dot operator I could see the 'ElementAt' and used it, i hit the error during building. How come Regards Alu ...Show All
Visual Studio How to change FieldDelimiter in a reportviewer (export to CSV)?
This reply really helped me out! Great thanks to Brian Hartman and also Michael Shorten ...Show All
SQL Server Casting...
I've got an ftp task that will be downloading a couple of files each night. today they're called blah20060830blah the date value in the middle changes each day. I'm trying to adjust this value with an expression. The expression doesn't want to cast my getdate function into a string that this property will accept. I know i'm missing something stupid. Thank you killerless wrote: AWESOME, thanks a lot, i'm looking forward to the day when the variable expression can be created w/ the expression builder. (I'd settle for a text area a this point) Install Sp1 and you'll be able to killerless wrote: Is it possible to call a stored procedure From a expression No! Sorry. ...Show All
Windows Forms Inheritance..Urgent please...
Hi, I want to design a base class in such a way using that i can define only one derived class. if i define another class it should give an error. ...Show All
Visual C++ Event in a grid...
Hi all, I am for example in a grid in visual C++ e.g A.1 and when I edit this cell and press enter i want to confirm my change and the selected cell to be the next B1..How can I do this I think to write sth like switch........case 0x0D{ } Thank you Hello Can you add a bit more information, such as which technologies are you using here Which compiler/framework/libraries/OS/etc Thanks Damien ...Show All
Visual Studio 2008 (Pre-release) wpf and asp.net
Hi, Can anybody tell me about the future of asp.net with wpf around the corner Will wpf be a replacement of asp.net or do you see cases in which you'd prefer asp.net x wpf If so, can you give examples. Thanks, Sergio Sergio, We are still investigating next version plans. However, this is an area we are investigating and feedback like this is helpful. Today, the best way to integrate WPF with a server-side component is using web services. There is no supported way of integrating with ASP.Net provider services at this point. Thanks, Lauren [MS] ...Show All
SQL Server SP2 CTP November 2006 installation failed
I have Windows XP Home Edition SP2 English Version. I installed MS SQL Server 2005 Developer Edition and after reboot I Installed SP 1. Now I try to install SP2 CTP November 2006. In Installation Progress dialog when Setup Support Files are in progress I get an error message - Unexpected Error Occured Unable to create backup folder and show me second message box with error Hotfix.exe has encountered a problem and needs to close. Regards Maciek Hotfix.exe was written to use UNC paths to reference files in the payload, as well as files on the local machine. If the user turns off default network shares, then the OS will not resolve the UNC paths that Hotfix references, and the execution fails. I ...Show All
Windows Forms Windows Form Designer and the 'Do not modify... warning
I'm not sure how--but I've managed to add some controls such as buttons, combo boxes, and others to my project in VB Express that are not visible. I don't mean hidden like control.hidden = true but hidden on the form. I think they are hidden behind other controls that I have on my form. I can see the drop down events of these hidden controls which have no code associated with them. When I view the code in the partial class generated by the Windows Forms Designer I can see the referece to them like: Me .MaskedTextBox2 = New System.Windows.Forms.MaskedTextBox Me .ListBox1 = New System.Windows.Forms.ListBox Me .MaskedTextBox1 = New System.Windows.Forms.MaskedTextBox Me .ComboBox2 = New System.Windows.Forms.ComboBox ...Show All
Architecture Any good Ntier real world (architecture)examples available for download?
Hi all, Everybody talks about designing a good architecture Talking between tiers in stateless manner avoid chatty objects use interfaces Use factory patterns etc etccc But no one has published or uploaded some generic examples of different architectures so that you can see how things really work.(A complete solution)with different projects in it. Just tired of reading theory and not seeing any examples. Am I wrong Could anybody point me in the right direction or do i have to reinvent the wheel If I have to it will probably be a square one Thanks and apologies for moaning. Hi thanks for your reply. Well, you never stated in your original post you wanted something free of c ...Show All
.NET Development problems in Executing stored procedures in Asynchronous Request
Hello everybody, I'm trying to launch a stored procedure from an asynchronous request but it doesn't wan't to start... The Sqlserver process goes crazy when calling the SP but nothing is written into the datatables... (I don't know what's going on at that moment. No exception can be thrown as calling manually the procedures with the same arguments works without any problems) This is the code i'm using to call the procedure: using ( SqlConnection oConn = new SqlConnection ( ConfigurationManager .AppSettings[ "MIS" ])) { oConn.Open(); using ( SqlCommand oCmd = new SqlCommand ()) { oCmd.Connection = oConn; oCmd.Parameters.Add( new SqlParameter ( "SqlQuery" , SQLquery.Selec ...Show All
