sammy chen's Q&A profile
Visual Studio Assigning Reportviewer datasource at runtime?
I have a winform with a reportviewer object on it. I'm trying to get data from a datatable to display on the report. myDatatTable is created and filled at runtime. I don't get any errors but only the literal below displays in the report. Or, the report is completely blank depending on what the literal is. Microsoft.Reporting.WinForms.ReportDataSource rds = new Microsoft.Reporting.WinForms.ReportDataSource(); rds.Name = myDataTable.TableName; rds.Value = myDataTable; reportViewer1.LocalReport.ReportPath = "Report1.rdlc"; reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.DataSources.Add(rds); reportViewer1.RefreshReport(); In the report designer, I have a textbox with this in it Fields!PersonCode.Va ...Show All
Visual C# Sending SOAP Requests in C# Client
Hi, I have a question about how to generate/send SOAP requests from a simple C# command line client. First of all, is there a class/method that will generate the SOAP envelope instead of having it manually created as an XML Second, how do you send the SOAP request with the HttpWebRequest class, and how do you obtain the response back from the server I am not looking at doing anything too complicated, just writing a simple SOAP request/response console client. The server is assumed to already have the appropriate services available to handle the SOAP requests. Please provide some sample code, or directions on where I should look, as I am new to the .NET/C# development community. Thanks. check this link. ...Show All
Visual Basic no .net framework?
I did a window application using vb.net and a setup project. But when i installing my system/programm to a new PC, it prompt out a error "Please install .NET Framwork"....... What should i do if the user PC dont have .NET Framework I cant require the user to install .NET Framework....so wat should i do to solve this Actually i dont really know wat is mean by .NET Framwork and why PC need .NET Framework to run the application programm, my application program is just a very simple program.......I am quite new to .NET .....pls help.... No framework !!! No VB.NET applications. All .NET applications require an appropriate version of the framework to be installed to work. Period - no getting around that. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. System.Reflection.Assembly
I'm finally getting around to porting what I had written during beta 1 over to the RTM. I'm thinking about building my engine in a modular fashion so that I can issue pluggins to extend its abilities easily. The XNA documentation lists System.Reflection.Assembly as an supported object on the 360. Is this true, and how does the FromFrom, etc methods work on the 360. Obviously the file paths would not be the same as Windows. I do not have an Creators Club Membership to verify how this works on the 360, but would like to know so that I could potentially plan for such functionality (If possible). A quick search on the forums did not reveal any prior posts on this topic. Thanks. System.Reflection.Assembly.LoadFrom can take a ...Show All
Visual Basic Evaluate a variable
Is there any way to evaluate the code stored in a variable similar to PHP's eval() function I have code that takes user input like a console. There are so many commands, I would find it much easier if each command was its own sub, so I wanted to call the sub whose name is in the variable cmd. Is there any way to do this without a select case Thanks, Paul Spangler You can use the CallByNameFunction. The first 3 arguments specify the object instance to call the method on, the name of the method to call, and the type of method it is (Get, Set, or Method). Any remaining optional arguments are then passed on to the function as its arguments. For example: CallByName(obj, "Foo", CallType.Method, ...Show All
Software Development for Windows Vista How to use Oracle 9i with TransactionScope in .Net 2.0
Hi, I want to use TransactionScope with Oracle 9i. What is difference to MS SQL Server Oracle does not promote the distributed transaction. Unable to get error message (6106). Yes I just saw the error and I am using transaction scope. Please update if you have any info. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. fmod
i have allso read that fmod player is running on xbox360 and fmod has a c# interface do you have any plans to make support for this Give the popularity of XNA even though its in beta - this might be something that the Fmod people want to offer. Seems like you should email them and ask their plans. Don't be surprised if you get laughed at - I asked vendors at GDC this year if they had any managed plans. The half of them who had heard of managed code pretty much just grinned at me - they just didn't see any $$$ in that market. ...Show All
Visual J# Help Needed..ASAP
I have created a windows form application in visual J# and on this application I have a tabcontrol. The problem I am having is that I have a "richtextbox" on one of the tabs(Tab B) and when I receive information in Tab B and i click on it(Tab B), the entire form freezes(basically it does not respond and the program crashes). I have realised that if I have Tab B open before the message is received, I receive that message and everything is fine. Is there anyone that can solve this problem Shepherd... p.s. Thanks in advance to all responses. I am very sorry about the late reply. I had decided that I would take out the tabs and use panels instead. The tabs were giving me a headache... :). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Plans for future XNA webcasts?
Just wondering if there were any official plans for webcasts One of the guys at the webcast that was done a couple weeks back said they'd like to do others. I guess we could see here what the community would like to see to determine what the interest would be. Hmm, can't seem to get that to play. Is that your mug on the first frame edit: downloading, we'll see what happens. edit2: OK, so that's not your mug. Have to watch all of it to see who it is. edit3: So George is famous now and I want the XNA Asteroids game that was shown! edit4: FONTS!!!!! YEA!!! edit5: OK, so the face was Major Nelson. Wow, that didn't look like him at all in the frame. Yeah, I'm sad, aren't I ...Show All
Visual C++ WinSock runtime problem
Hello, I experience runtime problem when i use WinSock. I tried to compile and run on both MVS, 7 and 8. My OS is Windows XP x64 edition. int _tmain(int argc, _TCHAR* argv[]) { WORD wVersionRequested; WSADATA wsaData; /* winsock stuff, linux/unix/*bsd users need not worry about this */ int err; wVersionRequested = MAKEWORD( 2, 2 ); err = WSAStartup( wVersionRequested, &wsaData ); if ( err != 0 ) { /* Tell the user that we could not find a usable */ /* WinSock DLL. */ WSACleanup( ); return 0; } if ( LOBYTE( wsaData.wVersion ) != 2 || HIBYTE( wsaData.wVersion ) != 2 ) { /* Tell the user that we could not find a usable */ /* WinSock DLL. */ WSACleanup( ); return 0; } ge ...Show All
SQL Server windows control library in a webpage accessing sql has a security error
I know this should be the easiest thing in the world but I cant seem to find out how to allow my windows control library dll which is loaded in a webpage to access sql. It works perfectly from within visual studio though, what do I need to do allow my webpage dll to access sql without throwing a security exception Any links or help would be greatly appreciated. Are you using integrated security (what's the connection string Does it have a username/password there ). Probably you ARE using integrated security - in that case the user being used to call sql is the one configured on iis to run the website. Give permissions on the database for that (iis's website) user, or create an application pool usin ...Show All
Visual Studio Team System Restore of individual Team Projects
Hi, as I see it, it is currently not possible to restore individual Team Projects from a backup. So if we have a lot of projects on one server, and one project wants to roll back to yesterdays version A restore of the whole DB means that all other projects will loose the work of one day What our customer also wants is the ability to archive old projects and restore them if needed. This seems also not possible Could please someone comment if this functionality will show up in a future release. If so - when Kind Regards, Markus You're correct in that we do not support this in v1. We're working on making projects more 'individually' manageable across the board for a future release. I can't ...Show All
SQL Server Drill Through to degenerate dimension inefficient and slow
Based on a profile trace it appears that SSAS performs a select distinct on each nonkey column and a select distinct on all drill through defined colums on the SQL backend when drilling to a degenerate dimension with Rolap storage. Caching reduces the amount of subsequest requests but is still very inefficient. Is there a way to just do a select columns from dimension table where dimension keys in (members, ..) I could set the storage to Molap but that would cause the same issue on during the load process. In Analysis Services 2005 your tradeoff for improving drillthoguh performance is to convert dimension to MOLAP. Yes, the price you pay is in the load times, but in turn you are geting performance you a looking for. In the next ...Show All
Visual Basic VB2005 Access test
I am brand new to VB2005, I use to work on VB6... Well let's just say alot of things changed [mostly for the better might I add]. I am playing around with creating a simple phone book. Everything works perfectly... I can add, edit and delete as I please. The moment I close the form/program and strart it up again, the data wasn't saved to the Access database. Any ideas why not... Please note I am brand new, so it's might be something terribly simple that I am overlooking. This usually occurs when the database file (usually sql express, but I suppose an access file could be the same way) is part of the project (that is, listed in the solution explorer) and has it's Copy to Output Directory property ...Show All
Windows Forms Drawing focus rectangle on the Image combobox
Hi, I am working in vs 2005. I designed a custom image combobox control with ownerdrawnmode. I am overriding the protected method DrawItem as follows. Protected Overloads Overrides Sub OnDrawItem( ByVal e As DrawItemEventArgs) e.DrawBackground() e.DrawFocusRectangle() If e.Index < 0 Then e.Graphics.DrawString( Me .Text, e.Font, New SolidBrush(e.ForeColor), e.Bounds.Left + imgs.ImageSize.Width, e.Bounds.Top) Else If Me .Items(e.Index).GetType Is GetType (ImageComboItem) Then Dim item As ImageComboItem = CType ( Me .Items(e.Index), ImageComboItem) Dim forecolor As Color = Microsoft.VisualBasic.IIf(( Not (item.ForeColor = Color.FromKnownColor(KnownColor.Transparent)) ...Show All
