rdrenker's Q&A profile
Visual C# Word Automation -- what a bind!
Hi everyone, Before I go completely insane , can somebody please help me solve this single, simple problem: Using late binding, how on earth do I get hold of a single Section in a Word document I can get hold of the full Sections collection like this: object sections = theDocument.GetType().InvokeMember("Sections", BindingFlags.GetProperty, null, theDocument, null); ...but can I hell get at the individual Section objects that it co ...Show All
Visual C++ Handling of System::String
How I can turn a variable of the System::String type to char[ ] How I can put a System::String variable in a structure of data How I can define a System::String to that it only has a maximum length of 10 characters and make an array how can i convert a char array to a system: tring i'm using vs .net and can't find a good solution anywhere thanx ...Show All
SQL Server Management Studio slow?
Hi, I am testing SQL Server 2005 June CTP on 32-bit & 64-bit Intel servers and so far SQL Server Management Studio appears to be very slow and response times are very poor (compared to that SQL Server 2000 Enterprise Manager). Are there others that have noticed this performance problem Thanks, PK I suggest upgrading to the RTM or even SP1 versions, the June CTP code is a year old a ...Show All
Visual Studio Tools for Office Intellisense not showing Enumerator List If ParamArray is used
I Have defined a procedure like this :- Public Sub SetBordersOn( ByVal ParamArray BordersOn() As Excel.XlBordersIndex) but intellisense is not showing Enumerator List, if this is defined withour ParamArray i.e. as a single parameter then it shows the values. kindly note that this has been reported as a bug on this link :- http://lab.msdn.microsoft.com/productfeedback/viewfeedback. ...Show All
Visual Studio Team System Complicated upgrade path using TFS RC
Hi, I have a Team server running the RC build. I will very soon want to move this server to new hardware and a new domain. Is there any guidance on performing this sort of move I have a single server install of TFS. Regards Graham Allen is correct. The documentation is written, and is going through some final editing review at the moment. This documentation will be available at ...Show All
Visual Basic Mapping value of variable and value of object
Hi, I am doing UMI design in VS.Net 2005(basic). This project is relative to DAQ, so the data structure is not standard, but many variables I need to set up from user interface or get from my hardware equipment. In order to make easy operation and control, I am thinking to find a solution to make a map between the variables and component in the interface. for example, I declare: dim a1 as new string dim a2 as new string in my use ...Show All
Visual C++ SetDlgItemInt it only show Integer If i want to show float number what should i do ?
i want to SetDlgItemInt by Float Number. but it is not have a function SetDlgItemFloat can some one help me to show Float Value in DialogBox. int a = 0,b = 0; float dx = 0.0; UINT Ai = GetDlgItemInt(IDC_EDIT1,&a,TRUE); UINT Bi = GetDlgItemInt(IDC_EDIT2,&b,TRUE); dx = (Bi-Ai)/100; UINT sum = dx; SetDlgItemInt(IDC_EDIT3,sum,TRUE); 1>d:\work sheet\integrate\integrate\integratedlg.cpp(168) : warning C4244: ...Show All
Visual Studio Express Editions How do I count the vbCrLf's in a text string?
Visual Basic 2005 Express Edition: The user enters a 'Note' into a multiline TextBox. I then print out that note on a printed page. This is difficult, because, if he presses 'Enter' at the end of his lines, the text ends up overlapping the text that follows his note. I need to be able to count the vbCrLf's in his note, so that I can increment the y position. You can get the number of lines by using the Li ...Show All
SQL Server data lost
Hi, I have encountered problem in the merge replication with conflict caused by foreign key constraint. As I did some reseach that it can be avoided by increase the upload and download batch generations. My question is how can I recover the data which has been lost Thanks You can try the mscontents and the conflict tables to say if you can recover the data there if these table has not been cleaned up yet. I am more int ...Show All
Visual Basic How to create faster split data ?
I am doing a realtime project. The data is coming every second, some time, i have more than one data in the same time, so i created Split data Class to solve the problem. Right now is working, but too slowly. Can you give me a code to make faster my class. Public Class SplitData Public Event ResultMsg(ByVal Msg As String) Public Event StatusConnection(ByVal counter As Byte) Dim PBCount As Int16 Public Sub New() End Sub Protect ...Show All
Visual C++ /CLR compile time/speed issues
I am introducing .net into a big project that I am working on. It consists of several dlls, and a final exe. In the past if you changed a class in one of the dll projects that form a base for all the others, only the files in other dll projects that depended on that class was re-compiled when builiding the whole solution. (If I only changed the cpp file it doesnt even recompile any other files of course). So this worked nicely to keep compile ...Show All
SQL Server Need help with getting Role names
How do I get the Role name that is assign to a table in a database using VB.NET code. I need to determine the list of role names for a table there is already in SQL Server and then when I get down building a new table set this new table to have the exact role names. Any suggestions on where the role name is and how to get it Theresa Assuming this is SQL Server 2005, application roles are visible in the ...Show All
Windows Forms control validation & closing form bug
- There is a form, which contains a user control. - This control contains another control. - The OnValidating method of the second control is overridden. So there are some situations when control is not valid: protected override void OnValidating( CancelEventArgs ...Show All
SQL Server Clustered and Non-clustered indexes
hi, how clustered indexes and non-clustered indexes been saved in memory non-clustered is a table of a references to the actual table and what about clustered indexes thanks. Indexes have nothing to do with memory. A simple way to explain indexes is just as an index in a book. You have the non-clustered index telling you on what page you can find specific information. The clustered index defines ...Show All
Visual C++ i/o streams
Starting from Visual 2003, some libraries for iostream have been removed and e.g. the class 'ostream_withassign' is no longer available. So now I cannot do something like the following: ostream_withassign list; if(to_screen) list = cout; else list = something_else; Any solution I'd never heard of this, but a quick google tells me it was part of iostream.h ( which is why I've neve ...Show All
