easygysi's Q&A profile
Visual Studio Team System Generic tests : result-data interface
In the documentation a generic test is an existing program wrapped to function as a test in Visual Studio. The program has to comply with one of the following for the result to be correctly processed as pass/fail: 1. Adheres to the Visual Studio return-code interface - ie returns 0 for pass and >0 for fail 2. Adheres to the Visual Studio result-data interface Does anyone know anything about the result-data interface Is this still in the produ ...Show All
Visual Studio Tools for Office How to do this in C#
I am trying to create PivotTable in Excel using c# The full code for the funtion is as follows; public void stgPivot() { Xl.Application xlApp; xlApp = (Xl.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application"); Xl.Workbook wb = xlApp.ActiveWorkbook as Xl.Workbook ; Xl.Worksheet ws = xlApp.ActiveWorkbook.Worksheets["Sheet2"] as Xl.Worksheet; Xl.PivotCache ...Show All
Visual Studio Tools for Office VSTO 2005 Beta2 Bookmark Relocate
I created a C# VSTO project in Beta 2 and built a simple program that uses a TreeView in the ActionsPane. The tree view contains nodes representing the Bookmark view controls in the Word document. I implemented the Drag/Drop capabilities within the TreeView and want to reflect the changes in the Word document. I am having some problems with calling the Relocate() method on the bookmarks. After re-ordering the TreeView I must ma ...Show All
SQL Server stop using dynamic sql
Hi, The following stored procedure (SP) is using a dynamic sql to build the query. How can this be written using a standard sql. i.e. NOT dynamically being built. Initially I thought I can have something like the following query but it does not seem to be working for when the where caluse parameters are not passed. So I ended up using the dynamic sql as it returns the correct data. Can you see how the SP can be altered please Thanks --------- ...Show All
Visual Studio Team System Zone Communication Constraints
Under Zone Communication Constraints, I am able to specify User Defined Port restrrictions for a WebsiteEndpoint. Why does the same not apply for an HttpClient endpoint No User Defined Settings are available for HttpClient. What does it imply when I enable HttpClient Hello The HttpClientEndpoint controls the client-side communication to a logical IIS Web Server. It is designed to show that the client will be using HTTP pr ...Show All
.NET Development Keeping a service running
I have an app that was originally written as a WinForms app that I need to convert to a Service. Most of that work is done, but I'm running into one last problem... The app was architected such that it creates N instances of a class. The class instances do all the work, and the WinForm app just listened to a particular event to give feedback. In the original app, the WinForm Message Pump loop kept the app alive, but now that its a service, it ...Show All
Visual Studio Tools for Office Is connected to exchange
How can I check whether Outlook is connected to exchange Hi Hojgaard, If you have not resolved the issue you can post the question on the office.developer.automation newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation Lubo ...Show All
SQL Server Can This Be Accomplished in My Time Dimension in my AS2005 Cube?
In my AS2005 cube, I have a time dimension with the following attributes: year, quarter and month. Also, there is currently no hierarchy by design. Is there a way to make a custom attribute/time period that reflects the last 12 months (R12M) and work in the same manner such as year, quarter and month The time dimension would then have: years, quarter, month and R12M. As a result, a user can drop a measure such as Sales Amt and then add ...Show All
Visual C++ OnToolHitTest not called for CStatic derived control
I'm really stuck on this. OnToolHitTest() is never called in my class. I have done the following: void CustomStatic::PreSubclassWindow() { CStatic::PreSubclassWindow(); EnableToolTips(); } In my class declaration I have: protected : virtual void PreSubclassWindow(); virtual int OnToolHitTest(CPoint point, TOOLINFO * pTI) const ; afx_msg BOOL OnTooltipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult); ...Show All
Visual Basic Why doesn't this work after restart?
I have the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Width = CShort(GetSetting("Test Pro", "Program_Settings", "RS X", 669)) Me.Height = CShort(GetSetting("Test Pro", "Program_Settings", "RS Y", 505)) End Sub Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize SaveSetting("Test Pro", "Prog ...Show All
Visual Basic Concurrency Problems
I am currently developing an app in Visual Basic 2005. I am using the following code to save changes to the database. Me .Validate() Me .BindingSource.EndEdit() Me .TableAdapter.Update( Me .DataSet.DataTable) However, when the SaveItem_Click event is triggered a concurrency violation is reported: System.Data.DBConcurrencyException: ConcurrencyViolation: The UpdateCommand affected 0 of the expected 1 records The ...Show All
Windows Forms Unable to cast object of type 'X' to type 'X'
The actual projects structure is: + MyServerFramework |---QueryComponent.cs ... + MyServerFramework.Design |---QueryComponentDesigner.cs ... The MyServerFramework.Design project has a reference to MyServerFramework, and is compiled alone in its own solution which also contains MyServerFramework, and then placed in a folder that is referenced the SOFTWARE\Microsoft\.NETFramework\AssemblyFolders key so the IDE c ...Show All
Windows Forms binding a listbox
Ok, I have a Database which has a table 'Projects'. with fields ID, ClientName, Address, Phone, County & Workers. I would like to bind this such that i have a list box showing all the available Client Names. I would also like to ...Show All
Visual Studio Express Editions Project Files
MSVC++ 6.0 had a wonderful feature in which during the compile process of the main code (which had, of course, user #include file(s) in it), the environment would identify ("discover") *all* header files upon which the project was based - automatically. Do the later MSVC versions have this capacity If so, how do I set up my environment to make this happen and where in the IDE would these files be displayed Thanks. ...Show All
Visual Basic Why can't VB add up properly?
Hello all, I'm new! Got a VB problem... At work, we have 60 offsite sales offices who currently enter their sales orders onto an Excel 2000 spreadsheet. The sheet has a VBA routine for validating their entries, for example, to check that an order value is equal to a deposit + the outstanding balance. We sat for ages trying to work out what was wrong with one particular line yesterday, and I came up with "let's try dividing by z ...Show All
