David DeVey's Q&A profile
Windows Forms Font spacing
Is it possible to control the letter spacing in a winform I.e. I would like a label to always use Arial 10px, but with a fraction more letter spacing than default. Try these links: <a href="http://msdn.microsoft.com/library/default.asp url=/library/en-us/gdicpp/gdiplus/usinggdiplus/usingtextandfonts/obtainingfontmetrics.asp">Obtaining Font Metrics with GDI+</a> <a href="http://msdn.microsoft.com/libra ...Show All
SQL Server format print range when converted to Excel?
I have a report that the user can print right from the RS site on three pages (each page one page wide). However, when I have the server email the report as an attachment in Excel; Excel tries to print it on four pages with one of the pages spilling over into the fourth page. How can I get Excel to format the print version just as I have on the RS site I have had the same problem. It almost seems that anything that I export to excel looks like it grows when it is printed in excel. I posted a question referring to that and never got an answer. ...Show All
SQL Server Sql2005 installation headaches
I am trying to install sql 2005 on a machine that had VS2005 beat and SQL2005 CTp on it. I have uninstalled every possible component that was in the beta release, and I still get the error, SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and then run SQL Server 2005 Setup again. For detailed instructions on uninstalling SQL Server 2005, see the SQL Server 2005 Readme The mentioned readmen file is usless, can someone please tell me what I have yet to uninstall to satisfy SQL Thanks ...Show All
SQL Server Please Help Newbie...Migrate Access .MDB to Sql
Please assist me , i'm new to sql and need to migrate a access db to sql format. i.e "lastname", firstname", "email", etc...any assistance would be great. I'm trying to get this working so as i can send out "personalized" letters, emails, froms. Cheers, Monica If all you need to do is move the database to SQL Server, the Upsizing Wizard in Access is your friend. Load up your Access database and then go to Tools... Database Utilities... Upsizing Wizard... Follow the steps and it will move your database (both data and schema) to SQL Server. Word of caution - The Upsizing Wizard isn't going to improve your database design. If you have a p ...Show All
Visual FoxPro Translate visual foxpro suorce code in php language
I see a nice application vfp 9.0, but how i can translate the source code in php language mdinu, That would wholly depend on the VFP application's source code and whether there are equivalents for everything in PHP. If you are looking for some kind of automated converter for VFP -> PHP, I'm afraid there isn't one. However, if there is something specific that the VFP application is doing and you are of the mind to post some of the code here (as long as it isn't too long), some advice or conversion tips might be available. ...Show All
Visual C# Speeding up the TcpClient method
I am working on a set of programs that communicate over a stand alone network. I have 1 client and 10 servers. The client trys to connect to the servers when the program starts. The client uses return new TcpClient(StudentIP, port); to try to connect to the servers. StudentIP is a String that is "192.168.0.101" , port is an integer equal to 60000. The TcpClient hangs(blocks ) over 1 minute when trying to connect to a server that is not running. It does connect to a server that is running. When I try IPEndPoint ipLocalEndPoint = new IPEndPoint ( IPAddress .Parse(StudentIP),port); temp = new TcpCli ...Show All
Visual Studio can vs2005 work visio2003 ? i want to reverse my work
i remenber vs2003 can work visio2003 so it can reverse my project and draw Class Pitcures, but why my vs2005 cant and add-on can do this Hi David, Visio for Enterprise Architect (VEA) that ships in the VS Team Architect edition will support reverse engineering from C++. VEA has a separate setup (and not installed when you install Visual Studio). I believe System Architect from Sparx Systems supports C++. Regards, Ramesh Rajagopal. Class Designer Team. ...Show All
SQL Server Displaying a List Horizontally
Hi All, I'm new to reporting services and I need some help. I've created a list which contains a photo and user name. Currently, it displays all the information I want however, the list expands down the page in one column. I would like it to expand across the page horizontally (4 columns) and then skip down to the next line. Can someone tell me how to do this using report designer Thank you Reporting Services doesn't support listing horizontally natively. You could workaround by trying something like the following (conceptually this is easier to understand): 1 ...Show All
Visual C# progressbar in a datagridview
How can i put a progressbar in my datagridview Thanks A lot All!! http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=176890&SiteID=1 ...Show All
Windows Forms Downloading HTML pages...
Is there a method to download 5 HTML pages at the same time using C#, and DIRECTLY from the server, without going through cache Also, just a neat little trick I learned a while back when dealing with caches: if you ever want to bypass the cache for some reason (usually on scripted pages -- sometimes a browser will return the&nbs ...Show All
Visual C# What is wrong with this ?
Hi all I am testing the Code Analysis new feture of .net 2005 so I have added these lines to the Assemply info file [assembly: CLSCompliant( true )] [assembly:SecurityPermission(SecurityAction.RequestMinimum)] and signed the assemply with strong key file when I build the project it's failed to be build put when I go to Error List to find what's my errors to correct it I didn't found any errors or warnings or even messages So what is the problem. any body can help and the amazing thing that when I remove the code analysis check it works fine ,is this a bug in .net 2005 code analys ...Show All
Visual Studio C# Express 2005 and Report
Dear All, I am using C# Express 2005 and SQL Server Express 2005 as well. I am planning to use no-touch deployment as well. At the moment, I am stuck as I cannot find any report designer to make my report work in the enviroment of C# Express. Is there any way or extension that I can include into the C# Express so that I can use to build the report Highly appreciate your advice. Regards, LG Install Visual Web Developer 2005 Express Edition ( http://msdn.microsoft.com/vstudio/express/vwd/download/ ). Then install the Report Designer and Report Viewer control from http ...Show All
Visual Studio Team System Systems Designer does not update web.config
AD successfully updates the Impersonate setting in web.config, whereas Systems Designer does not. Am I missing something I can override the Impersonate setting, whereas I set the password and UserName as not-overridable. Any assistance would be greatly appreciated. Hi Jean-Pierre, In Application Designer, only one project is generated for each implemented application definition in the solution; therefore, there is only one configuration file. When you design a system in System Designer, you can include multiple uses of that definition and override settings that you designated as overridable. After you define system ...Show All
SQL Server SSIS package doesn't execute as a job step
I have this SSIS package which just doesn't seem to run when executing as a sql job and I keep getting this error: " The command line parameters are invalid. The step failed. " I read some of the comments in forums and they were suggesting to verify the command line for the sql job since there is known bug in the command line for sql job. But that didn't seem to resolve it and the reason could be one of the variable values that I am trying to set. In this package one of the variables that I am trying to set is the connection string and my command line looks like this dtexec /SQL "\TestPkg" /SERVER [SVRNAME ...Show All
.NET Development Urgent::: Please guys I need your help in this problem
Problem Summary: I tried my best to solve this problem, however I couldn't at all. I'm developing a windows based application which is using a SQL server to store the data in its tables. The following code works very fine with the select statment Dim connString As String = "workstation id=HAITHAM_SALAH;packet size=4096;integrated security=SSPI;data source=HAITHAM_SALAH;persist security info=False;initial catalog=ElShamel" Dim conn As New SqlClient.SqlConnection(connString) Dim sql As String sql = "SELECT UserName As UserName, Password as Password FROM tblAccessAuthority" ...Show All
