-D-'s Q&A profile
Visual Studio Tools for Office Building VSTO projects without Visual Studio
We have a dedicated build server that uses MSBuild to build our solution. The server does not have Visual Studio on it. I'm trying to add a related Outlook addin project to the solution, but the server cannot build it. It builds fine on a workstation with VS. Is it possible to configure a build server to make VSTO projects without installing VS on the server It seems like it would be possible if I could get the right assemblies on the machine, but I wonder if that approach is deliberately locked out. This is not a supported scenario. There is no separate redistributable package for the VSTO MSBuild components. Separating out components of VSTO and installing them independently of the other componen ...Show All
SQL Server MDX Query returning all upper level defenitions??
Hi, I have created a query like this: SELECT non empty CrossJoin(Descendants([Centro Custo].[All Centro Custo], ,Leaves), Descendants([Tempo Mes].[All Tempo Mes].[2005], [Tempo Mes].[Mes], Leaves)) on Rows, {[Measures].[Valor com Imputacao]} on Columns FROM [Controlo Gestao] WHERE ([Tipo Medida].[All Tipo Medida].[REAL]) What is happening is that this query on reporting services is returned with all upper level defenitions.. My intention was to have only 3 columns... [Centro Custo], [Tempo Mes] and the selected Measure, what i am facing is alot more columns like... [Centro Custo].[Level 01].[Member_Caption], [Centro Custo].[Level 02].[Member_Caption], [Centro Custo].[Level 03].[Member_Caption], [Tempo Mes].[Ano].[Member_Caption ...Show All
SQL Server SQL Server over a WAN
I have a simple(ish) C# application. We have a Windows server here at our main site running SQL Server 2000 with our DB on it. When we run the application here it is fine. We have some remote sites though that connect to our network over a WAN, and when they run the application....................it is painfully slow. I have read little bits here and there about SQL and WAN being a no no. Can anyone expand on this Is it also true that SQL Server shouldnt be hosted on a virtual server because we have that going on too! Thanks for any advice you can give me on getting this thing running anything like acceptable. Steve One thing that I have learned is that sql server can use as much ram a ...Show All
Visual Basic Setting application settings
I really dont know if I am about to fraize this right or not, but here it goes. I have got a series of groupboxes on a form with a few comboboxes on each groupbox. In each combobox there are selections for different operations What I am thinking about is how to remember what the user selected last in each combobox, then the next time the the groupbox is shown - return that user to where they were previously with thier selections reguardless of if the application was closed or not. I used to have a temp table in access to do this, is there a better way without using a lot of resoucres Can this be hardcoded in the application or is that a no-no If this is possible can someone point me in the right direction Davids Lea ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detecting device capabilities
Hi. Now i'm trying to get the hardware capabilities, because one of my friend was trying to run an example that i give to him and the sample didn't work because his graphics device don't support: ' SupportsHardwareTransformAndLight' //(i saw that using MDX 1.1) So i want to modify the device creation to make it with 'GraphicsDevice.SoftwareVertexProcessing = true' but at this time i don't know how ask about the default device capabilities before the device was created. How can i do that thanks. Unfortunately, a very long call, but here it is: graphics.GraphicsDevice.CreationParameters.Adapter.GetCapabilities( DeviceType .Hardware).DeviceCapabilities.SupportsHardwareTransformAndLight ...Show All
Visual Basic [VB.NET] How to merge many GIF Files into one file
I need to create a software that it merge many GIF File into one file container. My application has this form I want that when i click "Add File" it shows an OpenFileDialog and that add file's path in the ListBox And when I click "Merge File" It merge all GIF file present in ListBox And when I click "Split File" it split all GIF File present in a File Container and that It save GIF Files in the same directory of the File Container I tried to write the code but it change any bytes of the GIF Files when I merge :( and i don't know how to use Split Function in VB.NET [Off-Topic]I'm new in VB.NET and i don't know fine this new programming language Best Regards Flash That is the ...Show All
.NET Development Getting Indentity field (Id) when INSERTING og UPDATING DataSet to SQL Server
I have an applikation that uses DataSets, i fill my datasets using an SqlDataAdapter and the Fill method. When i have new data to save in the database, Ii create a new dataset with the values needed, the I use the Update method on the SqlDataAdapter to save the data in the db. To get my INSERT statement I use the SqlCommandBuilder.GetInsertStatement method. This works fine, but I would like somehow to get the Indentify (in my case named Id) field for the row inserted (or updated for that matter). How is this possible -- Sparre See the following: Retrieving Identity or Autonumber Values BTW, identity column values are generated on insert, not update. ...Show All
Visual Basic full file path of running process/instance
Hi Experts, Can anyone know how to findout the full path( ex: c:\rama\bbc.xls) from the curently running instance "bbc.xls". I dont mind accepting VB6\.NET\Windows script solution for the same as i'm desperate to find the full path from ruinng instance. Lets say I've opened saved bbc.xls file and i know the currently opened instances from Process library and i can get the title("bbc.xls") but i dont know how to get the full path("c:\rama\bbc.xls") For more details please have a look at the following link. http://forums.microsoft.com/MSDN/showpost.aspx postid=1206503&siteid=1 -- Cheers, Rama If you are not starting the instance fro ...Show All
Visual Studio Team System How to modify email template sent via Project Alerts
I want to be able to modify the email template that states that a build was successful or not that is sent via Project Alerts Specifically, I want to be able to add a link to a report that is run via the daily. Can I do this Where can I find the template and how do I modify it Thanks, Staffan I believe the template is stored in C:\Program Files\Microsoft Team Foundation 2005\Web Services\Services\v1.0\Transforms on your TF Server application tier machine. You should be able to modify it if you like, though I'm not the guy to give advice on how to go about it... Let me know if you're having trouble tracking down documentation for this, and I can try and find some for you. -Aaron ...Show All
Visual Studio 2008 (Pre-release) Problem when using CollectionViewSource filter with DispatchingNotifyingCollection?
Hi, I am using DispatchingNotifyingCollection with CollectionViewSource. The code looks like this _wrapperCollection = new DispatchingNotifyingCollection < ObservableCollection < Item >, Item >(Dispatcher, _underlyingCollection); ICollectionVIew view = new CollectionView CollectionViewSource .GetDefaultView(_wrapperCollection) as ICollectionView _listBox.ItemsSource = _view; _view.Filter = new Predicate < object >(filtercode); bool filtercode( object de) { return true; //if return false, it will crash. } The problem if this only works if the filter code didn't filter out any element, if the filter code filters out any element (say I changed it to return false to f ...Show All
Visual Basic Thread Error
Can anyone help me with the following.. When I'm debugging my code it gets to a point where the debugger stops, If I wait for a minute it comes back but when I press F11 to step through further I get the following error. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Threading.ThreadStopException: Thread was being stopped. at System.Runtime.InteropServices.Marshal.SizeOf(Type t) at System.Windows.Forms.Form.UpdateWindowState() at System.Windows.Forms.Form.WmWindowPosChanged(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at Sys ...Show All
Visual Studio Team System Automatic export of code coverage .xml
Hi ! I have found out that I can export the code coverage results out to an .xml file, and that is very usefull for me. But this function is sadly not usefull at all if I have to manually open visual studio and export it. I therefore wonder if there is anyone who knows how to export the code coverage (.xml) file automatically, when the test is run (just like the test result file .trx). P.S: The reason to this question is that I whant to automatically run a large collection of tests, outside visual studio. BTB Hello, Yes you can, but you will have to write some code if you want the actual xml file. To get the .coverage file you can either run your tests using mstest.exe specifying y ...Show All
SQL Server Ambiguous column name in VIEW using Microsoft SQL Server Management Studio
ON SQL 2005 SP1 Run Following script USE [master] GO DROP DATABASE [JCTEST] GO CREATE DATABASE [JCTEST] GO CREATE TABLE [dbo] . [JCTEST1] ( [preferred_name] [char] ( 50 ) NULL, [surname] [char] ( 50 ) NULL, [expected_end_date] [char] ( 10 ) NULL ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO CREATE VIEW JCTEST AS SELECT TOP ( 100 ) PERCENT UNICODE ( surname ) AS surname , expected_end_date AS fred FROM dbo . JCTEST1 ORDER BY surname GO SELECT * FROM JCTEST and, as expected you get a recordset with 2 columns and no rows Now go into Microsoft SQL Server Management Studio and "Modify" View JCTEST. Use ' ...Show All
SharePoint Products and Technologies Possible Bug in Collegue Tracker Web Part?
I have been testing MOSS 2007 and WSS 3.0. I found a possible bug in the Collegue Tracker Web Part. When changing the Site them to Obsidian in a MySite Site - the links in the webpart are not visible, yet they are there because the cursor changes as you scroll over them and clicking sends you to whatever you have scrolled over. The URL that is selected does appear in the status bar. I have not found this problem with any of the other themes. Has anyone else noticed this And if it is a bug - who do I tell I can duplicate the issue that you have reported although I am not really certain I would call it a bug, more of a UI issue. The link is still there it is just white text on a white background so it does not show up. The link does s ...Show All
Windows Forms DialogResult not detecting DialogResult::OK
I'm using the following code to try and open a file using the openFile dialog box, however it always enters the 'Open file cancelled' section, even when the Open button is pressed. ::DialogResult ^openfileresult; openfileresult = openFileDialog->ShowDialog(); if (openfileresult == ::DialogResult::OK) { // Open the file here (never gets to here) } else { // Open file cancelled (always ends up here) } If however I cut out the intermediate variable and do a direct comparison by changing the code to the following, it works perfectly as it should. if (openFileDialog->ShowDialog() == ::DialogResult::OK) { // Open the file here } else { ...Show All
