C#2.0's Q&A profile
Visual C# Import xls file into dataset
Hi , I am solving this problem:I need import data in xls file into DataSet, but i dont know how.I think, it could be done like this: 1 .I save xls file like cvs or other txt file(with separators of data) and in C# i will use stream reader for get it into dataset. 2 .I save the xls file like xml file, and than i will read it into dataset.But how. 3 .I read into data set xls file. What is your opinion Are these options right Thanks for any a ...Show All
Visual Studio Crystal Reports asks for login even with Int Security set to true
My report is set to use Integrated security and has been running fine until I had to add another parameter to the Stored Procedure the report is based on. After checking for changes and pulling in the new parameter the report started asking for log info when run from machines other than the one it was developed on. So I put the code in to pass the connection info in and the login still comes up but the database field isn't filled in and it won't ...Show All
Visual Studio visual studio 2005 beta 2 installation problem
i have a pre-install of visual studio 2003 and SQL server 2000 in my machine, now i attempt to install visual studio 2005 beta 2 and SQL server 2005 into the same machine again, do i need to remove all component of the visual studio 2003 and SQL server 2000 can anyone show me a step by step installation guide to install visual studio 2005 beta 2 and SQL server 2005 your help will be appreciate a lot..thanks Hi, ...Show All
.NET Development Asyncronous Sockets support TCP Message Boundary?
In The Name of God hello as u know tcp doesn't protect message boundries it means messages might be mixed into each other. in addition to that in TCP it's possible that a message would be delivered in diffrent times. so you must use a while loop to get the complete message. like this: int size_Total = 0; int size_Dataleft = 4; int size_Received = 0; byte[] size_Container = new byte[4]; ...Show All
Visual Studio 2008 (Pre-release) To Display all the Records of a Table in WPF UI.
Hello Everyone, I am trying to access PostgreSQL database in the WPF Application. I am able to display a single row value to text boxes. I have used dock panel. The Xaml file looks like this: <DockPanel x:Name="dockPanel" Width="250" Height="500"> <StackPanel DockPanel.Dock="Top" Orientation="Vertical"> <TextBlock VerticalAlignment="Center">Roll ...Show All
Visual C++ Printed text is overlapping!
In document Image Writer, text looks just OK, and ofcourse it is as I was tuning it according to image writer. But when I print that same stuff on the paper, text is overlapping!! I am using pInfo->m_rectDraw.Width() and Height() to retreive width and height in points. In Image Writer exactly 5 paragraphs fits the paper and on regular printer letters are about 5 times larger and only about 2 paragraphs can be printed on 1 paper. Also, in Prin ...Show All
Windows Forms handle multiple URL links in a richtextbox
how do you determine which link was clicked Private Sub RichTextBox1_MouseUp ( ByVal sender As Object , ByVal e As System . Windows . Forms . MouseEventArgs ) Handles RichTextBox1 . MouseUp Dim TheUrl As String = "www.TheUrl.Com" Dim StartIndexOfLink As Integer = Me . RichTextBox1 . Find ( TheUrl ) Dim EndIndexOfLink As Integer = StartIndex ...Show All
.NET Development programatically adding an imagebutton - setting position (style?)
I have an .aspx form with a single command button roughly in the middle of the form. When pressed, I want the code to add an imagebutton web control to the form. I want the flexibility to size and position the button in the form. I can see that the button width and heigth properties are available in the imagebutton class. How can I set the 'top' and 'left' properties I found that the 'style' string contains these p ...Show All
Visual Studio Team System Unit Testing Issue - comparing structures (probably any objects)
I have a web service method which returns a structure. In order to test that the correct data is being returned, I call the method and then populate an identical structure with the same data. It appears however that there is no way to get the unit test to identify them as identical. I had to compare each and every property of the object in order to determine that they are identical. Is there any easy way to do this Thanks. Jeff ...Show All
SQL Server My First Report
I need to create a report for a phone directory. Basically my report needs this format. department employee employee and so on..... department employee employee and so on..... department My data is stored in two tables department - deptID deptName Main - deptID empName title order by ...Show All
Software Development for Windows Vista How to add mapped printer for a remotely connected user
How do I add a mapped printer for a remotely connected user. User is connecting through a remote desktop connection and he is not seeing his printer. How do I add that printer. does he have a printer installed when in the office just doesn't see it when remote try adding the /console switch to mstsc. If you added the printer and are expecting him to see, that won't work becuase they are per user. josh http://windowsconnect ...Show All
Software Development for Windows Vista Shell Namespace Extension changes in Vista
Is there any documentation or articles that explains the namespace extension changes that is made in Windows Vista One thing I noticed is that IShellFolder::GetUIObjectOf doesn't get called to retieve the IExtractIcon interface to display custom icons of a folder. Bryan Same here ! My namespace extension worked flawlessly, until Vista came along. Now the context menus in the Tree/Folder Pane don't work, th ...Show All
Visual C++ How to use MFC Sockets in Extension Dll
Hi, I am developing a Network Monitoring Application. For this I am developing an Extension Dll that is used with SNMP Service. Now I want this Dll to communicate with the Server/Management Station using MFC Sockets. What I want to know is that how is this done Since this is an Extension Dll, I also have Initialised the CDynLinkLibrary Class in the DLL_PROCESS_ATTACH of the DllMain function. But still this does no ...Show All
Visual C# XmlNode.RemoveChild problem
Hi I have an ArrayList of nodes to be deleted (deleteList) from the xml document. I am doing the following : public void deleteNodes() { foreach(XmlNode anode in deleteList) { XmlNode parent = anode.ParentNode; if(parent != null) { parent.RemoveChild(anode); } } } The xml doc is as follows : line 1 : <abc> line 2 : <def> some text </def> line 3 : <ghi ...Show All
Visual Studio Team System Build Type Creation Wizard Customization
Hi All I am aware of and used the PCW (Project Creation Wizard) of VSTS for creating new team project. Also I have successfully customized the process template. I am running into the requirement of customizing the Team Build Type Creation wizard. I dont know if such support exists as a extensible feature of the VSTS Team build System OR VSIP is the only way out. If VSIP, how can we make the plugin work on the command that is internal to VSTS f ...Show All
