Ravi Sankar Samanthapudi's Q&A profile
Visual Studio Tools for Office Change Style of AutoTextEntry
Hi! I'm creating a Word template using VSTO 2005 and Word 2003. In this template I added some AutoTextEntry objects, but I couldn't find a way to change their style. I was able to create a new style, and apply it to the document, but what I'm looking for is a way to apply it only to certain autotext entries (keeping the document's style unchanged). Can anybody help me on this Thanks in advance! Hi, Yes, you can use the AutoTextEntries.Add method. Try something like: Dim myTemplate As Word.Template = CType ( Me .AttachedTemplate, Word.Template) myTemplate.AutoTextEntries.Add( _ Range:= Me .Parag ...Show All
Smart Device Development CAchive
Is that true that CArchive is not support under MFC 8 I am happy to know that. Visual Studio 2005, which is scheduled to ship in the next month or so, should have the CArchive support that you wanted. ...Show All
Visual Studio Team System Project portal on separate tier
hello, is there a way to install only the project server on a separate machine, instead of the machine where the team foundation server is running Hi, is it or will it be possible to use a Sharepoint Portal Server 2003 as host for the Team Project Portals created by Team System. We would like to keep our Projects in one place. Thanks, Mats ...Show All
Visual Studio Team System 'Display Name' changes in Active Directory breaking WorkItems
A user in my company recently changed his 'Display Name' in Active Directory and now we can't edit any work item activated by him before the name change. The error VSTS shows is the following: TF20015: The field 'Activated By' contains a value that is not in the list of supported values. We can't edit this field neither from VSTS nor from Excel because it's read only. Looking into the TFS databases, I found that the following fields store the old Dislpay Name: In the tables [TFSWorkItemTracking].[WorkItesLatest], [TFSWorkItemTracking].[WorkItesAre] and [TFSWorkItemTracking].[WorkItesWere]: [Assigned To] [Created By] [Change ...Show All
Visual Basic Post Publication Problem -
Oh Jeez, I've been working for weeks on a project. It's been stable and I published it. The deployment works absolutely fine. It installs and is beautiful! BUT.... after publishing... I can not develop. I can not activate the code in the debugger. I can't do anything. The code has binary serialization of a database. And I am now after publishing I'm getting the "Cant find assembly ... Culture neutral - Null key" errors that I saw weeks and weeks ago and fixed. I backed up the code this evening, before publishing. That environement works fine. The published and deployed code works fine. It's just that the development environment seems c ...Show All
Windows Forms How to access the public methods of existing Windows Form
From one Windows Form class, how do I access a public method of an existing instance of another Windows Form class in the same Project ( Said existing Instance not having been created within the first mentioned class). Thanks in advance. cool. . . Thought about this after I posted. you might want to apply a factory pattern on that . . . hide the constructor, sync the instance. . . no need for the events. Read up on Static constructors and Factory Pattern: ================== public partial class MyForm : Form { static MyForm _instance; &nb ...Show All
SQL Server Can't get SQL Manager to connect to server instance SQLEXPRESS
I installed SQL Server Express and SQL Server manager, then tried to start manager. SQL Service is running, but SQL Manager attempt to connect to SQL Server instance times-out even though I correctly identify instance as SQLEXPRESS Everything seems to be normal - both SQL Server and Manager are on a single Windows XP home machine. Any suggestions. Thanks Hi, There are only two datatypes that could handle date and time values in sqlserver. These are DateTime and SmallDateTime . Both of these types cold not handle data between 1/1/0001 to 31/12/9999. But you can store these dates as a varchar and just pa ...Show All
Visual Studio Express Editions How to Hide Blinking Cursor in the Textbox
I have a problem now hiding the blinking cursor on the textbox, how can i do this in visual basic express if i set it to textbox1.readonly = true, the cursor still appear, what i've done is setting the textbox to textbox1.enabled = false is there any way to hide it thanks:) ...Show All
.NET Development How to Insert, Update and Delete in Visual 2003 .NET in mysql database?
Hello I use the program Visual C# 2003 .NET. 1) I will try to insert, update and delte strings in my mysql databse with the class MySQLDataAdapter but I can't get it to work correctly and get some errors, someone out there to helpme and show how the syntax should be to get it work correctly I want to make is in a function. 2) And then I have try to make an instance to use to input string in the function but that also not work correctly, and then how to use variables in class as input in the function, how to The data in the class instance sholud be the data from 2 textbox in the form. 3) and last how should the class syntax ...Show All
Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.
I created an WordML file with the following assembly code: < o:_AssemblyName dt:dt= "string" > * < /o:_AssemblyName > < o:_AssemblyLocation dt:dt= "string" > C:\tmp\WordTemplate1\WordTemplate1.dll.manifest < /o:_AssemblyLocation > When opening the wmlfile in Word I get the error: "Failed to update customization from the specified deployment manifest." Does anyone have an idea Hi Arno, The _AssemblyLocation property should point to a deployment manifest. In your sample, it seems that it points to the application manifest instead ...Show All
Visual Studio 2008 (Pre-release) JOINS
Having installed and now run the 101 examples, I'm pretty impressed, and also seen the actual SQL going to SQL 2005! I believe now<S> However in the JOIN examples I see the 'joins' are done using the old SQL 89 syntax. I.e. in the WHERE clause, which is perfectly valid for INNER JOINS but a surprise because of the limitations where it comes to OUTER JOINs An OUTER JOIN with constraint that is applied before the JOIN has no equivalent. E.g. Table 1 ...Show All
Visual Studio Team System Custom Test Configuration Properties
I have a set of unit tests that I would like to include in a set of nightly test runs as part of a build environment. I want the entire set of tests to be included in each test run, each with a slightly different environment context (in this case, different user credentials and proprietary configuration files). Is there a way to pass in custom values from the build environment to the test environment, either through the MSTest.exe command line or through *.testrunconfig files Is this what TestPropertyAttribute is for If so, how do you override the value without recompiling the code (i.e. adjusting the attribute values) If no ...Show All
Visual C++ "Create Event Handler" not working?
I have a dialog with several controls. I right click any of these controls and click "Create Event Handler". The dialog appears and there is a list of classes to choose for the function to be put, but the left side has no list of events to handle. Everything is basically blank. Why is this not working Have you got any manually-hacked resource header or script files in the project Perhaps the add event handler dialog will only display a list of messages if it knows the underlying type of the resource given by the IDC_buttonname resource identifier. A way to verify this might be to go to resourc ...Show All
Visual Basic Excel Control in VB2005
Hi All: Is there a Table Control similar to Excel work sheet (can do drag copying from cells to cells, etc.) in VB2005 Thanks. Fred Herring wrote: I use the Farpoint spread component. I believe www.FarpointSpread.com is the web site. I consider the tool excellent. It is superior to Excel in many ways. Fred Man, it better be good for those prices....$1000 + ...Show All
Visual Studio Express Editions [C++ Express] Add Resource disabled?!
I downloaded Visual C++ 2005 Express Beta 1 last friday, but it seems that adding and compiling resources wasn't enabled in this version! Haven't had the time yet to try Beta 2, but is this enabled in this version or will it be enabled in future ! MS's "plan" here seems to disregard its (claimed) intended audience for the Express editions. MS uses language like "beginner", "get your feet wet", and similar indications that it views the Express editions as a tool for novices... yet who needs a resource editor more than a novice Why not omit application templates too, or the debugger (don' ...Show All
