vasudupe's Q&A profile
Visual Basic Making a .exe
In vb6 and previous, a simple project is just made into 1 .exe file that can be run on any other PC right Now in vb2005 how do i do this Has microsoft also changed this feature Thanks So actually the answer is no I'm creating a very simple plain windows form using VB2003. It's purpose is to give users the ability to select and run setup programs for a group of freeware programs. I want to run this form from a CD. Is there any way to do this without having to install the proper framework on a client's computer in order to run the application that lets people decide if they want to install one of the freeware programs I know this was possible in older versions of Visual Basic because that is what I' ...Show All
Visual Studio Tools for Office Saving Word Documents without Actions Pane and Bookmarks
I'm sure this must be doable, and I'm just not asking the HELP files the correct question. But let's consider this scenario. An application is built with VSTO in which an Actions Pane helps User A to pull data from an SQL Database and paste the results into a Word Document. User A does this every year, so each year he puts in the current year and gets the correct results entered into his document. User A wants to keep his file like it is, with the Actions Pane, so that he can do the same thing again the next year. BUT, he would also like to save a copy of the final document each year containing the correct values for each year for distribution to User B, his client (without the Actions Pane and bookmarks or any reference to these). ...Show All
Visual Studio how can i make crystal reports without loginID & password
when i create a crystal report on VS.2003 to view the data in table in dataset . the report will good and work without login & pass but when i do that on VS2005 and when i run the application . the application is ask me about pass & login . and i do not now what is that and from where the application is bring that option. how can i solve this problem ...Show All
Visual Studio Express Editions Using a progressbar with a download, can't find specific code
I've found plenty of examples that don't use webclient. but I need to use webclient because of the ability to set the referer on it, which is imperative for the file the app is to download. Anyone know a link to some code, or have some code themselves Revenicus, There are two examples for you: 1. Use a WebClient object to download the data at a URI in VB .NET When you enter as URI and click the Upload button, the program creates a WebClient object. It uses the object's OpenRead method to open the URI for reading, attaches a StreamReader to the stream, uses its ReadToEnd method to read the data, and displays the result. http://vb-helper.com/howto_net_webclient_download.html 2. How to u ...Show All
Visual C# Build Events Error
Hi all trying to use the Build Events that are on the property page of the project I wish to copy a Directory so it's placed within the release folder when i compile. I write the following post build. [code] copy"$(ProjectDir) Reports" "$(TargetDir)" [/code] It works and my code complies but i get the following error message any one now why Error 1 The command "copy"C:\C# Work\ReportTest\ReportTest\ Reports" "C:\C# Work\ReportTest\ReportTest\bin\Release\"" exited with code 123. ReportTest Thanks!!! After looking all day found a solition that works xcopy "$(ProjectDir)Reports" "$(TargetDir)Reports" /i /d /y Thing is I ...Show All
Architecture Creating DataBase
I am re-writing a single-user, local application that supports MS-Access to a multiple concurrent user application that will support MS-Access, SQL Server, Oracle, DB2, and XML. In the current application, a Microsoft Access Database (*.mdb) file (with structure but no data) is distributed with the application. When the user wants a new database, the distributed file is copied. With a move to SQL Server, etc. most users will likely not have the ability to create databases on the fly (I assume most companies keep that in the hands of IT). What is the best or at least accepted method of distributing the database structure with an application Actually, the biggest problem with this application is that is single user standalone. We ...Show All
Visual C# Changing a key in a Dictionary
I've seen that I can create a class which inherits from System.Collections.ObjectModel.KeyedCollection<TKey, TValue>, in the link below, and set it up so that I can change the key, but I was curious if anybody knows if there is a way to change the key in a System.Collections.Generic.Dictionary<TKey, TValue> http://msdn2.microsoft.com/en-us/library/ms132449.aspx The only possible way is to delete the existing entry and add it again with the new key. I stress that that is the only way to do it. By the nature of the way the Dictionary is implemented, even if there were a single method call to do it (say, RenameKey()), that method would have to be implement as removing the existing and re-adding it. ...Show All
Commerce Server Problem with RunCheckoutPipeline()
Hi, I'm trying to streamline the starter site's checkout page (~/Checkout/Default.aspx). Rather than prompting the customer to enter a shipping address before he/she can add a credit card to his/her wallet, I want the customer to be able to enter all of this information on one page. Once the required information has been entered and the customer has clicked the "Place Order" button, I will create the necessary profiles and update the basket and order form accordingly. Below are the steps that I cobbled together from the various user controls used by the starter site's checkout page. 1. Update the basket's BillingCurrency and SoldToName values. 2. Update the ShippingMethodId and ShippingMethodName for each LineItem retrieved when ...Show All
.NET Development New Window
I have a button on a call back page and when the button is pressed the new window isn't staying forward, it's hidding behind the window with the call back. I've tried to self.blur() the call back page and popup.focus() the new window but they don't seem to work. Anything would be appreciated. There is no pages and buttons in XML. It's not clear what is the context of your question. Please, consider using appropriate forum. ...Show All
SQL Server Cannot open user default database. Login failed
Hi, I have installed SQL Server 2005 Express edition and when i try to run the web site as http://127.0.0.1/SiteName/Login.aspx . I am using default SQL Provider. Can anyoone please help me i was struck here from last two days. System.Data.SqlClient.SqlException: Cannot open user default database. Login failed. Login failed for user 'XXXXXX\ASPNET'. Regards, Pradeep. See the Security matrix form here: http://msdn2.microsoft.com/en-us/library/aa302377.aspx You either can create the ASPNET user on the server, create another one and specify it within the web.config file, or specify in the web.config file, that you want to use impersonation. (Depending on your needs) HTH, Jens K. Sue ...Show All
Visual Studio Vs Studio 2003 Update
Hi,I would like to know if I can get an update of Ms Visual Studio .NET 2003 like updating it to 2005.I got a genuine key,please someone answer me. there an upgrade option but you will still have to pay for the upgrade Either purchase the full version of VS.NET 2005 or download for free and install the Express editions of VS 2005. These are lightweight VS 2005 products which are aimed for hobbyists/students mainly. ...Show All
.NET Development help me
protected override void OnColumnChanging(System.Data. DataColumnChangeEventArgs e) { // base.OnColumnChanging(e); if (e.Column.ColumnName == CustomerCompanyNameColumn.ColumnName) { if (( string )e.ProposedValue.ToString().Trim() == "" ) { e.Row.SetColumnError( "CustomerCompanyName" , "Please Enter Customer Name" ); } else { e.Row.SetColumnError( "CustomerCompanyName" , "" ); } } like this how to Validate the Dataset Values While entering a new record in the table the error provider should be displayed in front of the Textbox if the textbox is blank while pressing the tab button using protected override void OnTableNewRow ...Show All
Visual Studio 2008 (Pre-release) SelfHost WCF example on 2 machines
Hi, all ! I tried selfhost example to run different machines and client faild unless I added <identity><servicePrincipalName/></identity> to endpoint. So my questions in this case : 1) Why only "servicePrincipalName" work and not "userPrincipalName" ( this example run service as console application and not windows service ) 2) Why I don't need to add value attribute for "servicePrincipalName" in this case 3) Why I can only set end-point address as "computername.domainname" and not "computername@domainname ". When I set it on service instead of "localhost" service failed 4) How the adress will be changed for workgroup. 5) Is it possible to use ...Show All
SQL Server Topcount for a period.
I want to get the 10 best xxx in a period (i.e. this quarter, last quarter, this year, last year...) I have used topcount to get the top customers but it includes all the data from all years. For example in foodmart to get top brands by sales I have: set [TenBest] as 'TopCount( [Product].[Brand Name].Members, 10, [Unit Sales] )' I assume I somehow use the [Time] dimension in the query to get the top brands for 1997, 1998, Q1 1998, Q3 1997... Then I can use the same syntax for toppercent, bottom.... Thanks, Chris Steve Pontello wrote: You can do this with a "dynamic" set. If your client tool supports the creation of "Session" or "Query" scop ...Show All
SQL Server Question regarding Sql Server memory and cursors
Hello, We make use of ADO (not ADO.NET) and server-side cursors in one of our products and when viewing Performance Statistics for Sql Server 2005 using Windows Performance Monitor we have noticed that the "Number of active cursor plans" never decreases. In our queries we maintain several open, server-side cursors concurrently. We use .NET/C# and the standard ADO import library. We are closing our recordsets. The number of active plans jumps by 40 or 50 for each of our queries and as far as we can tell, never decreases (the number of Active Cursors, however, does decrease back to zero.) MSDN/Documentation was somewhat cryptic on what an Active Cursor Plan actually is and Google didn't have any useful information, either. ...Show All
