Tryst's Q&A profile
Visual Studio Tools for Office Kick Starting VSTO after document opens
Hello, I have a VSTO Word document with a simple messagebox that appears on startup. I copied and removed the assembly information from these documents manually (File->Properties->Custom). I closed and saved the document, then reopened it and it opened as a normal document. I then paste the information back into the Custom Properties, save and restart and its VSTO enabled again, no problems. However, I would like to paste this assembly information into the word document and kick-start VSTO without having to save and reopen the document. Is there any way inside word, or within VBA that would allow me to do this in any fashion. Thank you for the assistance. Hi, Yes, ServerDocument.AddCu ...Show All
Visual Studio Team System team architect edition - where can i download trial?
Hi, We have TFS set up in our office, and now I am trying to get a hold of a trial version of VS Team Architect Edition to play with the new designers etc. On the architect homepage ( http://msdn.microsoft.com/vstudio/teamsystem/architect/ ), there is a link to 'get the trial edition', but this takes me to the main visual studio trial page ( http://msdn.microsoft.com/vstudio/products/trial/ ), and when i download and install this, all that is available is the developer and tester tools (no architect tools). Can someone point me to the correct location to download the Team Architect Edition Many thanks in advance, Gordon Doherty Hi Gordon, Did you install the Team Suite trial edition That contains the Team Architect ...Show All
Visual Studio Express Editions CheckedListBox.SelectedValueChanged
Howdy, not sure whether this is a bug in Express or whether there is just a better way to achieve what I want: I have a CheckedListBox from which the user is allowed to select a limited number of items (less than the total number of items in the list), I validate this rule with the CheckedListBox.SelectedValueChanged event and simply 'uncheck' the selected checkbox if the maximum number of items have allready been selected from the list. I also alert the user of the maximum being reached with a beep. I have recently noticed though, that if I accidently double-click an item, a beep is heard but the item does not become 'unchecked'. Any ideas Sorry, I'm not quite sure I understand your reply. The cod ...Show All
SQL Server Create new database as a user instance
Hello... Is there any way to create a new database directly as a user instance. I guess this means creating a new mdf/ldf pair which is detached from the server after its created. Thank you... hi, papadi wrote: But what I'm actually looking for is... that code that creates the mdf/ldf pair from scratch, just like visual studio does when you add a database to an application using the 'Add New Item' functionality. Do you think it's possible a database is not just a pair of files... it is created as a logical "object" (in master database system tables) during the "creation" of the physical files and the operation is atomic... the created database is generated reflecting the destination serve ...Show All
Visual C# Interop.SQLDMO.dll Problem
hi everybody, i am working on register sqldmo dll but not registered on 2003 server. error= C:\Document and Settings\Administrator\......\Interop.SQLDMO.dl was loaded,but the DllRegisterServer entry point was not found. This file can not be registered. What can i do thx Hmm, the only thing that jumps out is "XP64 workstation". .NET 2.0 supports 64-bit operating systems, not sure about 1.1. COM and sqldmo.dll almost surely don't like running in 64-bit mode. The registry, where COM gets its class registration info, is shadowed for 32-bit apps. You'd easily run into a case where sqldmo.dll is properly registered for 32-bit apps but not for 64-bit apps. Try forcing .NET to run in 32-bit mode. Project + p ...Show All
Windows Forms Summing A Total of a column in a datagrid
Hello I need to sum a column which is connected to a dataset. Basically I want to run a query which brings up data via a date range into a data grid in which then I want to sum 1 column. I only want to sum the visible data in the data grid not the total of a column in the table. Lets say there are 1000 records Can anyone help me please. Thanks Joe Hi... I have the similar problem...But mine is that i need to show all the records in the datagrid...then i need to get the total of some columns which i need to show in the datagrid's footer... The column fields are Date, New Members, No. of Items Purchased and Downloads. I need to sum up all the new members, No. of Items Purchased a ...Show All
SQL Server XML middleman
can XML act only as a middleman between the actual database and the application program Not sure this is related to data mining, however, the following resources may positively answer your question: SQL XML : http://msdn2.microsoft.com/en-us/library/aa286527.aspx (for relational databases) XML/A: http://www.xmla.org/ (for analysis -OLAP and Data Mining - databases) ...Show All
Visual C++ there is a _CrtDbgReport Error when changing the Character Set
i get a new application without using Unicode Character Set, and later, i chang the Character Set from Use Multi-Byte Character Set to Use Unicode Character Set. build is ok, but when i debug the application, TRACE don't work, and a error arise: _CrtDbgReport: String too long or IO Error. my TRACE is :TRACE(_T("fdsafdsafdsa%s\n"),"ly"); but the string isn't too long . How can I make TRACE work It seems the macro does not support all of characters. You can try this instead: ::OutputDebugString(_T("中文\n")); If it still does not display characters correctly, then I am afraid you will not be able to show your text in Output window of Visual Studio. ...Show All
SQL Server Creating a New Measure Under Existing Measure Group?
Hello, When working with SSAS cubes, is there a way to add a new Measure to to the existing Measure Group without creating a new Measure Group For instance, I have a Measure Group called Account with one measure in it but when I try to add a new measure to Account but it gets added to a new Measure Group called Account 1. Thanks This is Stupid, when I create a new Measure with an aggregation on a column from the same table than another measure it automatically creates a new measure group for this measure. But If I create a new Measure Group it automatically creates different measures depending of the types of the column from the selected table. I have just re ...Show All
SQL Server use exists in join
Hello, Can i somehow use exists() function in JOIN ON clause for example SELECT * FROM Table1 INNER JOIN ON Table1.Col1 = Table2.Col1 AND EXISTS(SELECT * FROM Table2 WHERE Table2.Col2 = Table1.Col2) It doesn't work on my query. So, basically i want to do an inner join so that Table1 gets filtered. Then I make sure that every entry in the filtered Table1 has an existing related entry in Table2. i need to do exists because there could be more than one relation in Table2 for each entry in Table1, but i don't want multiple repetition of entries in the filtered Table1. (Not sure if i am making it clear!) I need distict selection, but i am adding NEWID() at the beginning of my query so distinct doesn't work for the rows. with my current query, i ...Show All
Visual C# Error when adding Constant
Hi I am trying to add a constant to my class to store the connection string once retrieved from web.config I am trying to do it via const string strConn = ConfigurationManager.ConnectionStrings["testConnection"].ConnectionString; however this keeps throwing the following error - Error 23 'mpyapftdb.DAL.DAL.strConn' is of type 'string.' A const of reference type other than string can only be initialized with null c:\inetpub\wwwroot\mpyapftdb.FireTestDatabase\App_Code\mpyapftdb.DAL.cs 20 32 http://localhost/mpyapftdb.FireTestDatabase/ Can anyone help me with this please - I don't understand why this code is not working as it is a string being assigned to a string Thanks Andrew ...Show All
Windows Forms How to enable Ctrl+C, Ctrl+V, Ctrl+X in a text box?
Hi, I've already set the ShortcutsEnabled property to true but still cannot use keyboard shortcuts to do "copy", "cut", "paste" ,"select all", "undo" , "redo", etc. Did I miss anything Thanks in advance ps. i'm using VC# Would you be able to explain in greater detail how you were able to prevent the MDI Parent from consuming the keypress event I have the same problem and can not figure out how to fix it. Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No news about XNA 2?
It has been a long time (feeling instead of real time) since XNA 1 released. I've been waiting for news about the next big thing. But it seems it's rather quite; no early info is out. What will be the next exciting things I can only guess... 1) Maybe it's an XNA Game Studio Professional which works with VS Pro version. But I'd rather like an XNA SDK to work with any IDE. 2) Maybe it's great enhancement to the framework. Many more D3DX stuff come into XNA, lifting XNA to the same level as MDX/native DX in functionality. Hmm...I hope the functionalities are not dropped just because they're not supported on XBox. XNA GSE has only been out since 1/3 into December in 06. Version 1 isn't too old! Since C# is a . ...Show All
Visual C# Help with dll call
These are c++6 dll calls, how would i do them in c++.net or C#.net ////////////////////////////////////////////////////////////////////// // -- MXSock.dll -- // WinMX WPNP Support Dynamic Link Library Header File // Copyright 2004 [Nushi]@[2SN] ////////////////////////////////////////////////////////////////////// #pragma once ////////////////////////////////////////////////////////////////////// // includes ////////////////////////////////////////////////////////////////////// #include <Windows.h> ////////////////////////////////////////////////////////////////////// // Export or Import Switching ////////////////////////////////////////////////////////////////////// #ifdef _MXSOCK_DEV_ #define MXSOCKAPI extern "C" _ ...Show All
Visual Studio 2008 (Pre-release) WCF and REST based Web Services - Queries
Hi All, I had been through the articles and blogs for .NET 3.0 (formerly Indigo and WCF). I have few doubts and need more info to get a head start on WCF. I am planning to use REST based Web Services using WCF. Performance for me is critical issue since I will have to pass fair amount of Data Sets across the Services layers (using DTO pattern here) Can someone give some hints for me to kick start on how to begin building Web Services using REST pattern leveraging WCF Also when we use WCF what would you suggest 1) ServiceHost to host Windows Communication Foundation endpoints within application domains. OR 2) Hosting the Service in IIS With what binding would it be faster ...Show All
