keram's Q&A profile
Visual Studio Express Editions How To Change PaperSize When Printing
After a lot of errors, false starts and senior moments, with the help of several generous souls who responded to a query I made on the VB Express Forum and with several revelations from the book “Mastering Microsoft Visual Basic 2005,” by Petroutsos, I am a closer to understanding printing and modifying the papersize and other printer parameters. I am including the code for a small VB windows test program that programmatically creates two different paper sizes. I hope it will help others as they implement printing in their applications. The code contains no error handling and is something that should be added in a full project. The ...Show All
Smart Device Development No unique GetDeviceUniqueID on Pocket PC O2 Atom?
Hi all, I have tried to use the sample from VS2005 and i got problem to retrieve the DeviceId. The GetDeviceUniqueID on O2 atom return the same number even for different machine. The GetDeviceUniqueID on Dell X51V Wm5 machine is unique. Is there any work around OEM implements these functions,, Win CE only specifies how this should work Interesting blogs for your reference , http://blogs.msdn.com/jehance/archive/2004/07/12/181116.aspx http://blogs.msdn.com/windowsmobile/archive/2006/01/09/510997.aspx Srikanth Bogadapati ...Show All
Smart Device Development How to deploy .NET CF to PDA?
I am confused on how to deploy .NCF to a PDA. Need to deploy my app (after testphase) to 50-200 PDA's. Running and deploying it from VS2005 to the PDA works fine. The .NCF2 installer is 25 MB big. I only need the correct .NCF CAB installer for our PDA's. I did unzip the MSI and renamed a file to get the the corresponding .NCF CAB file (have not tested it). But is this the correct way Does Microsoft want us to reverse engineer the MSI to deploy the .NCF to our PDA's same here, so I used NSIS to create a setup.exe using the cabs which will install the correct CF to ppc2003/wm5, 4.3mb, want it dunn ...Show All
SQL Server Connecting to Oracle database
Hi, I want to connect to Oracle Database by creating a dsn in SQL Server 2005 Reporting Tool. I am unable to creating a new dsn with the wizard ir is providing, please help me how to create a new dsn so that my new report can get the data from Oracle database. Thanks in Advance, Ramesh. You have to setup the oracle server with the ORACLE Net Provider which has to be installed first, for ORacle 8 its Oracle NET8. Then you can choose the provider in the DNS selector. Although there is a Provider within the .NET Framework I would perfer installing the Oracle provider. HTH, Jens Suessmeyer. ...Show All
Visual Studio Team System Undo unshelve
Is there a way to undo an unshelve. In other words I want to bring the code back to how it was before I loaded up someone's shelveset onto my workspace I tried doing Undo Pending Changes, but its undoing the changes I had made before loading the shelveset. Thanks, JGP No, unfortunately. I agree this would be nice to have (along with merge-on-unshelve). A "best practice" might be to save your workspace to your own shelveset before unshelving anyone else's code. ...Show All
Visual Basic Help on Update String
MyCommand.CommandText = "UPDATE PATIENTS SET LastName='" & tboxLastName.Text & "',FirstName='" & tboxFirstName.Text & " ' WHERE PatientID= '" & Val(tboxPatientID.Text) & "'" the application throws in another exception saying "No value given for one or more required parameter" and the debugger was displaying WHERE PatientID = '1", instead of '1' so I think its in the WHERE statement, I had tried different combination of quotes but to no avail.... You're not specifying any quotes at all. What does Val do It's completely superfluous here. If the ID is a number ( and it should be ), ...Show All
Software Development for Windows Vista what should I missing to use VS 2005 extension?
Hi, I have installed following tools, windows SDK (v6.0.5070), Runtime Components(Nov CTP) and VS 2005 RTM. But when I want to install vs2005 extension(Nov CTP), a dialogue shows that I still miss a prerequisites and I must install the Microsoft windows SDK which I thougth I have installed. What should I do Thanks. I am not a 100% clear on the problem, but from the description is sounds like you are mixing versions of VS. in order to run VS 2005 RTM you should not have any of the older CTP components, and you should not install any of the older CTP components after installing RTM. ...Show All
Visual Studio Express Editions How to create a sort of login?
Hello I want to make a program for certain people and I want it so that they need to enter a code the first time they run the program. The codes would need to be programmed into the program and a certain code would need to show certain info in the program ( for example: if someone entered code 12345 on the first startup the program would show 'welcome name'). If you need some extra explenation just ask. I would like to know how to do this. Bye and thanks in advance. You have a login form dialog as a template form type. So add one to you project. You need to instantiate an instance of this log ...Show All
Visual Studio Express Editions Could a program change the screen resolution mode?
I am writing a program that I plan to market to medical doctors. Would it be possible for it to always run in 1024x768 screen resolution mode That is, could the program: 1) save the current screen resolution 2) change the resolution to 1024x768 3) restore the saved resolution at program exit The Screen class (also exposed as My.Computer.Screen) can return the current resolution, but it can't change it. As has been discussed previously in this forum, it isn't a good idea to force a resolution change on a user - with some display adapters a resolution change may require a system reboot. It is p ...Show All
.NET Development Delayed send with smtpclient in .net 2.0
Is there any way to force the smtpclient to send mail immediately with the .send method in system.net.mail 2.0 Right now it takes anywhere from 90 secods to two minutes before the mail is actually sent once the .send method executes. I've tried setting the object to nothing immediately after the .send method call, but no luck. The real issue for me is the send delay is also causing the smtpclient to hold a lock on attached files that are being sent for that same 90 seconds to two minutes. I need to move the file immediately after emailing it, and right I get an exception telling me two processes can't access the file at the same time ...Show All
SQL Server How can I put a newline within a string column?
I am using Derived Column Transformation Editor. I have 3 string values which I would like to combine them into one string and have a newline character inbetween the 3 strings. I cannot see a Char() function similar to TSQL to use for this purpose. I thought about creating a Variable but even to that I don't know how I can assign a newline character. Any ideas here is a sample doing a carriage return and a line feed between a field and a static string. Should work between 2 fields as well assuming all the data type stuff meshes out. Description + "\r\n" + " >>>>>>test& ...Show All
Visual Studio 2008 (Pre-release) problem with coercion?
I have trouble understanding how coercion works. Here is the test class: class Test : DependencyObject { public int MyProp { get { return (int)GetValue(MyPropProperty); } set { SetValue(MyPropProperty, value); } } public static readonly DependencyProperty MyPropProperty = DependencyProperty.Register("MyProp", typeof(int), typeof(Test), new UIPropertyMetadata( 1 ,null, OnCoerceValue)); static object OnCoerceValue(DependencyObject obj, object value) { return 2; } } I thought new Test().MyProp would return 2 but it returns 1 instead. Any idea why the callback is not called ...Show All
SQL Server MDX problem with AS2005 CTP Sep 2005
I migrated the Foodmart 2000 sample database to AS2005. Executing the following MDX query works fine: select {[Measures].[Store Sales]} on 0, Descendants([Store].[All Stores], [Store].Levels(2), LEAVES) on 1 from sales 10 "store states" are returned as expected. If I add NON EMPTY like in the following query select {[Measures].[Store Sales]} on 0, NON EMPTY Descendants([Store].[All Stores], [Store].Levels(2), LEAVES) on 1 from sales the store states without "Store Sales" values are discarded, but now the result additionally contains the "Store Country" member "USA". Why "USA" is neither a member of the "Store State" level nor ...Show All
Windows Forms deploying under microsoft iis sharepoint services
Hi, I would like to use the ClickOnce Deployment on a Windows 2003 Server where Windows SharePoint Services are running. I've tested the deployment on a Windows XP Professional PC with IIS which worked fine but is not applicable since the PC is in use as a Workstation. If I want to publish on the server I always get an error message. Has anybody an idea how the server has to be configured or if it is generally possible to deploy on this kind of server. Even a good link would take me a few steps forward. Thanks. Hi, What error are you running into. Here is a link to some troubleshooting st ...Show All
Visual Studio Express Editions SQL express 2005 install problem
I had the same difficulty with installing SQL Express 2005. Install kept complaining about a component from the beta editions of vs2005 beta, framework2 beta and sql express beta. None of these showed up in the add/remove from control panel. I finally found some help at Aaron Stebner's WebLog ( http://blogs.msdn.com/astebner/archive/2005/07/01/434814.aspx ) I downloaded the msiinv.zip from the link on the above site. I created a bat file to run it {path to exe]\\msiinv.exe > c:\output.txt Ran it to get the output.txt file. I create another bat file to run msiexec /x <product code> as indicated in Aaron Stebner's WebLog eg msi ...Show All
