CLOlds's Q&A profile
Visual Studio Tools for Office Assembly not referenced error when using Microsoft.Office.Core.CommandBars?
Hello all, I keep getting these compile time errors when I try to use Office.CommandBar in my code : Error 4 The type 'Microsoft.Office.Core.CommandBars' is defined in an assembly that is not referenced. You must add a reference to assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. Error 5 'Microsoft.Office.Core.CommandBars' does not contain a definition for 'Add' My code is pretty simple: using System; using System.Data; using System.Drawing; using System.Windows.Forms; using Microsoft.VisualStudio.Tools.Applications.Runtime; using Word = Microsoft.Office.Interop.Word; using Microsoft.Office.Tools.Word; using Office = Microsoft.Office.Core; // Alias IO because of the conflict with the local P ...Show All
SQL Server how to prevent ordering of records....
hello, i use VC# and sql server 2005. i create a table using the following command : create table history(name varchar(20) primary key); I insert records in a particular order.After all the records are inserted and when I try to retrieve the records, all of them are sorted in a ascending order.Is there any way to prevent them from being sorted. pls reply asap..... - Sweety What order do you want them to be in If you want a certain order, add another column to your table (say an integer column) and assign it values corresponding to the sequence of your insert operations. Suppose id is the name of this new columns. That way you can later get back the data in the order you want by doing ...Show All
SQL Server Multi report subscription
Hello, Is it possible to create a subscriptions for more than one report (I would like to pack in one e-mail three or four reports). Thanks, Regards Braulio ...Show All
Visual Studio Team System Custom Rule - Counting number of AcquireReaderLock calls in a single code path
Hi, I am trying to write a rule that will check if AcquireReaderLock is matched with ReleaseReaderLock properly. To do this, I need to explore each code path (I think), to count the number of times each was called in a specific path. Does anyone have any information on how to do this I assume it is possible since DisposeMethodsShouldCallBaseClassDispose checks different code paths. Thanks, -David DisposeMethodsShouldCallBaseClassDispose is actually part of our old non-extendable data flow analysis engine. This engine has actually been removed from the latest builds. Detecting and following code paths is quite a complex and advanced problem, something that unfortunately we don't provide out-of-the-box ...Show All
Visual Studio Tools for Office Cant find word 2007 Template/document in VSTO SE release
Hi, I have downloaded and installed the VSTO SE from http://www.microsoft.com/downloads/details.aspx familyid=5e86cab3-6fd6-4955-b979-e1676db6b3cb&displaylang=en But it only provides the template for Infopath and all the add-ins. I am unable to find the template for other office 2007 application (Word 2007 etc.). Can any one provide me a link or guide me how to install/develop so that i can create a project of word 2007 at document level using template (not at application level i.e. no add-ins). HI, Thaks for the reply ...i did the samee but it only gives me the templates for office 2003 and not for office 2007. I had office 2007 and Visual Studio 2005 on my machine Now wat i ...Show All
SQL Server Using stored procedure to read from ODBC ?
Dear all, I am using SQL 2000 and would like to dynamically assign ODBC data source to transform data task. Do you have a stored procedure to perform read/write from/to ODBC data source I would like to input data source and table name. Thank you and Best regards, Chaivat Hello Jens, I tried to define link server using both sp_linkedserver and enterprise manager approach. It seems that I cannot add the ODBC datasource to Microsoft OLE DB provider for ODBC. My datasource is SAS and I have SAS ODBC driver which able to read/write in DTS. I also can read data from SAS to Excel using the same DSN. Do we have another way to code stored procedure that works like adding OD ...Show All
Smart Device Development How to convert from bitmap to PNG and store in Sql Mobile?
Does anyone know how to convert a Bitmap to a PNG and save it in an Sql Mobile database I want to use PNG, but if this is not possible any hint how to store a BMP to an Sql column is appreciated. I prefer an in-memory solution but a file solution is ok. Lars Lars Brange wrote: Does anyone know how to convert a Bitmap to a PNG and save it in an Sql Mobile database I want to use PNG, but if this is not possible any hint how to store a BMP to an Sql column is appreciated. I prefer an in-memory solution but a file solution is ok. Lars just write it to a varbinary field in your sql server mobile DB. done. bytes to bytes and back. as far as converting BMP to PNG, you should be able to take y ...Show All
Visual Basic Encryption - Storing Private keys
Hi, I'm building an application to handle licensing some software i'm writing. I'm using the RijndaelManaged cryptography objects to encrypt an decrypt the license codes and database login info etc. At present i have the Key and Initialisation vector values stored as byte arrays private to my cryptography class. The code works fine. The problem is that when i use a decompiler on my dll the Key value byte array is fully visible, along with my Encryption and Decryption methods, thus rendering the security useless. My question is how do people actually store the Key value so that no one has access to it. I can't find any mention of how people actually do this, only how to use crytography once you have the key. I'm almost tempted to g ...Show All
Visual Studio Team System Avg response time
Hi if iam seeing an Avg Response time (max)=1.13 does this mean 1minute 13 sec or 1 sec 13msec..... also if i see Avg response time (min)=0.63 does this mean 0.63 millisec or 0.63 sec.Kindly reply soon. ...Show All
Visual Basic Fonts
How do you get the settings in "FontDialog1" to apply to "RichTextbox1" Set the richtext box poperty Font to that of the fontDialog's Font property if the user selects ok. This is written in C# but you should be able to quickly convert if (fontDialog1.ShowDialog() == DialogResult.OK) richTextBox1.Font = fontDialog1.Font; ...Show All
Visual Studio 2008 (Pre-release) A question on DataContract
Hi! I'm new to WCF, and I've got a question regarding DataObjects / DataContract. As far as I understand, DataConract provides a way to send custom objects, serialized in one of the formats, across the wire. So, at the server side I could have data objects that implemented properties and methods to manipulate those properties (or at least setters with some business checking). That's good. Now, if I build a proxy using VS2005, it reads the contract and constructs a "copy" of my class, with all the published properties, but of course, all business logic goes away. That is logical in many ways (louse coupling, interoperability,...), but let's say I'd like to use the same implementation (shared data objects assembly ) on ser ...Show All
Software Development for Windows Vista Digitally signed exe gets runtime error when launched on Vista...
...but when the digital signature is removed the exe is launched properly. According to Microsofts requirements for the "Certified for Windows Vista" certification all dlls, exes etc must be signed with a digital signature. We use a signature from VeriTest to sign our installation msi's according to the specifications for the "Designed for Windows XP" logo. When I sign our exe (a C++ application, not the msi) with that signature and try to launch it on Windows Vista, I get a runtime error. Has anyone ever experience a similar behavior If so, how did you solve it Thanks!! /Niklas Hi Niklas, I'm going through the certification process at the moment. We are using ClickOnce and C# but I may ...Show All
Visual Studio Express Editions procedure view
Is procedure view or equivalent available in VB.NET Take a look at this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=319473&SiteID=1 The answer provided there is by Visual Basic Development manager from Microsoft Regards, ...Show All
Visual C++ This application has failed to start because MSVCP60D.dll was not found
I have a winforms application written in managed C++ using the .NET framework. Just today I added code to use stuff written in Pure C++. So in order to compile ok, I changed /clr:pure to /clr and everything compiled fine. But when I run the application, it gives me an error "This application has failed to start because MSVCP60D.dll was not found. Re-installing the application may fix this problem". How do I fix this What did I screw up Thanks for your help!! I finally discovered that the problem was related to linking a version of msvcprtd.lib taken from the WIN DDK dir which has shown to be incompatible with VC++ 2005 Express. For the benefit of others who may have the ...Show All
Software Development for Windows Vista Add icon to themed menu
Hi, I want to add icons to a standard popup menu and retains the Aero theming. I noticed the Organize popup menu in the Explorer window has icons and Aero theme. How can I do that Are there any code sample available The Vista platform SDK has no sample on menu theming. If I set the hbmpItem field in MENUITEMINFO to HBMMENU_CALLBACK and draw the icon using WM_DRAWITEM, the theming is lost. If I simply add a bitmap to the hbmpItem field, the result is even worst because the bitmap is drawn at the wrong place and no theming. Thanks, Herbert The short answer: 1) convert the icon to a pre-multiplied ARGB32 bitmap and assign that to hbmpItem along with setting MIIM_BITMAP in fMask. Use a 32bpp DIBSECTION bit ...Show All
