David Luu's Q&A profile
SQL Server changing "header rows to skip" property in flat file connection during runtime
Hi all I have a flat file.I am trying to set the value for the property " HeaderRowsToSkip " during runtime.I have set an expression for this in my "flat file connection manager". But this is not working.The connection manager is not able to take the value during runtime . My expression is as follows: DataRowsToSkip : @[user:: Var] where " Var " is my variable which gets the value from the rowcount component and trying to set it back to the "HeaderRowsToskip" property. I ve even tried setting the value to the " HeaderRowsToSkip " property in the expression builder. Its not working.... Can anyone help me out in solving this Thanks in advance Regards Suganya ...Show All
Visual Studio Default Font for Textbox
Is there a way to change the default font used when you add a textbox to a Report http://connect.microsoft.com or http://connect.microsoft.com/SQLServer/Feedback -- Robert ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Built in 360 Features When Deploying...
I'm working on my entry for dream-build-play and since I don't have a 360 to test on, I wondered if there are any special things automatically available. The main one was the reconnect controller signal. Does that happen automatically with deployed games or is that up to the developers I already have a game component that sends out events when controllers disconnect and reconnect (for automatic pausing of the game), but wondered if I should bother putting text on the screen or if the Xbox will do it for me. Also, do I have to do anything for the case of a user playing music over mine Will it automatically get rid of just the music for me or is there a flag that I set somewhere Or do I have to detect that they started music and pause mine ...Show All
Visual C# Create website is missing from Home screen
Hello, I have used VS2005 for quite sometime now and I always had option to open or create website from homepage, now I see only "Project". I can still create and open website from File menu but option is gone from homepage, anybody has any idea why would that be G Try re-importing the Visual C# Development settings. There is a setting that controls whether that option shows up on the start page. You can also try running devenv /resetuserdata and then choosing the Visual C# Development settings from the initial screen you get the next time you launch VS. Hope that helps! Anson ...Show All
.NET Development publishing web services
Hi, What I must to do or change to publish my web service, I have created a Web Service it is my first time I want to publish it. I mean what do I have to do that everybody could use it on a server. thanks for response Deploying a webservice is the same as deploying a website. In Visual Studio 2005 you can right click on the website in the Solution explorer en choose the option "Publish Web Site" In the Wizard choose a directory. The webservice is now deployed to the directory. Open a FTP tool and copy wthe content of the directory(the deployed files) the website/URL where you want to have the webservice.Good Luck! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where's the wrapper for ID3DXEffectStateManager?
Seriously - ID3DXEffectStateManager is beyond necessary when it comes to integrating D3DX Effects into any serious state management system...so where'd you hide it Or do we now have a way to read state assignment metadata like Cg And if so then...where's that I think they skipped it for now since they just wanted to get XNA out there. And really...XNA can live without it for now. Just add an extra pass to your fx file where you reset whatever exotic states the shader just put in there and make sure you tell Begin to not save and restore state. Should give you a little performance boost. And sort your effects so objects using the same effect render in one batch. XNA is targetted mostly towards hobbyist ...Show All
Windows Forms Adding image/icon to context menu
I tried, and this sounds extremely simple but I couldn't find any information on the net. Is there a way to add an icon to a context menu in VS .NET 2003 I've never used vs 2003, but I assume it isn't too different from 2005. To add the icon to a context menu item, I found the easiest way was to select the item you want to add it too in the designer, for example "paste", then in the properties window there is a line called image in the appearance section. Its pretty self explanatory from there. If 2003 doesn't have this functionality, sorry, I tried to help. ...Show All
Visual C++ a++++;
hi i hav this problem. int a; a++++; gives an error.. ' operator ' needs l-value but ++++a; compiles properly. plz help me... a++++ is evaluated as (a++)++. The postfix ++ operator requires an l-value (variable) as it's operand but it does not return an l-value hence the error. In contrast ++++a is evaluated as ++(++a). The prefix ++ operator requires an l-value just like the postfix operator but unlike the postfix operator it's returning an l-value as well so this works. And to second duck thing: Don't write code like this ! ...Show All
Visual Basic Minimum function
I'm working on a project that has the user input 15 grades, calculates the average, and finds the maximum and minimum values. The average and maximum calculations work but I can't figure out how to get the minimum value. Here is my code so far: Public Sub DetermineClassAverage() Dim total As Integer ' sum of grades entered by user Dim gradeCounter As Integer ' number of grades input Dim grade As Integer ' grade input by user Dim average As Integer ' average of grades Dim max As Integer Dim min As Integer ' initialization phase total = 0 ' set total to zero gradeCounter = 1 ' prepare to loop ' processing phase While gradeCounter <= 15 ' loop 15 ...Show All
Visual Studio Team System Smart Labels and Changeset Dump
I want to be able to add a label to all files that were modified/added/whatever as part of a changeset. But I've discovered that if I simply request the label be added to changset X, it gets applied to every single file everywhere. Is there another way to do this In the meantime, I must painstakingly find each and every file that was touched, and place the label on it explicitly. Also, I'd like a way to highlight the list of all files presented as "details for changeset X," copy them, and then paste them elsewhere. But it won't let me do it!! Is there something I'm missing The best way to do this will be with a script or a piece of API code. In short, pipe the output of tf changeset to tf label . ...Show All
Visual Basic Adding list items from delimited text file
Back again with another Noob question. My form will ammend user's input via text box to a delimited text file, but i want to get the info from the text file to show up in a listbox. How do I accomplish this I already have the listbox on my form and have tried ... My .Computer.FileSystem.ReadAllText( "C:\Entries.txt" ) and Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Dim filename As String = "C:\Entries.txt" Dim fields As String () Dim delimiter As String = "," Using parser As New TextFieldParser(filename) parser.SetDelimiters(delimiter) While Not parser.EndOfData ...Show All
Visual C# how to convert word documents to pdf
Hi, Is there any open source component to convert .Doc files to PDF.. Thanks. ~ Arjun Google Docs and Spreadsheets can do this (I tried it the other day as a test) - assuming you have a Google Account. I think OpenOffice may do it too. But you probably don't want to install OpenOffice just to do this one thing! ...Show All
Visual Studio how can we calculate the sum in crystal report ?
there are 2 columns BrCode and TransferAmount if the BrCode is repeate many times then then the sum of TransferAmount should be calculated. How can we do this in Crystal report for eg BrCode TransferAmount 1 2000 1 3000 ========================== Branch Total= 5000 -------------------------------------------- 2 1000 ========================== Branch Total= 1000 --------------------------------------------- 3 5000 ========================== Branch Total= 5000 ========================== simply make transfer amount a group and insert formular sum(transferamount) in the footer of the group... ...Show All
.NET Development Synchronizing contents of datatable with the database
I have 2 forms that modify the data of a table; Form1 opens Form2 Form2 modifies the table "Sample" and closes Form1 should refresh its datatable to reflect changes made by Form2 Any suggestions Is there a refresh function for ado.net2 *BTW, im not using strongly-typed datasets so everything is done manually.. thanks, paolo Paolo, If the contents of both forms are drawn from the same datatable , then you would need to refresh the controls that display the data , This also depends on what databinding you have in place , If the contents of the forms draw from different datatables and you do not have local copies of these datatables in place you going to have to hit th ...Show All
Smart Device Development Web service via a proxy server
I have an application written in C# using .Net CF 2.0 which consumes a web service which sits on one of my servers. My device is running WM5 and the dev env is Visual Studio 2005. In the code, I create the web service, check there's a valid internet connection like this: ... req = ((HttpWebRequest)(WebRequest.Create(" http://www.microsoft.com "))); res = ((HttpWebResponse)(req.GetResponse())); if(res.StatusCode == HttpStatusCode.OK) return true; ... and then invoke a method on the webservice. This all works fine with the device cradled until I change my network settings to go via a proxy server. The PPC seems to pick up these proxy settings after a reset and I can see the web service via IE on the device. However, when I run ...Show All
