prg's Q&A profile
Visual Studio using two tables from a dataset to one report ??
Hi I'm using this to fill up my report private void createReport() { DBConnection DBConn = new DBConnection(); OleDbDataAdapter myDataAdapter = DBConn.getDataFromDB(); DataSet dataReport = new DataSet(); myDataAdapter.Fill(dataReport,"myPersonalInfoTable"); myDataReport aataReport = new myDataReport(); aataReport.SetDataSource(dataReport.Tables[0]); crystalReportViewer1.ReportSource = aataReport; } But when I set "aataReport.SetDataSource" I can only send one table at once.... How can I send all teh tables from my dataset to the report I tried using aataReport.SetDataSource(dataReport); but the application crashes... Any Idea and an example Thanks To reca ...Show All
Software Development for Windows Vista State workflow with custom data tracking....
Hi, Our current application is windows a service based implementation of a business problem having various states. We want to port to state workflow as the model is suitable to implement in real workflow. so we have designed a state workflow having all states. Each state would listen to some external event or has state initialization activity that does automatic checking of some parameters and changes the state to next state. In our original application , we have a logging mechanism that logs almost every activity in DB for future analysis. Since we want to port to WF, can someone tell me how should we port WF activity tracking with our logging mechanism so that we can get all those data associated with WF state and WF activity We wi ...Show All
Visual FoxPro Activex in VFP
I am new programmer in VFP. I am using a VFP 6.0 I have a VB ActiveX, I insert this control in a form in VFP. It's OK.. but my problem is that one method of this control, recieve a parameter type VT_PRT.. And i don't know how means that and how this pass this parameters In the class examinator appears: Metodo (obj as VT_PTR) The definition this method in my VB ocx is: Public Function Init(obj As licence) As Boolean ...Show All
Visual C++ C++/CLI /CLR Managed Support in Native Library
Hi, I have a C++ project, a .dll project in Visual Studio 2005, which uses all native C++. I was able to compile the project with the /clr option (just /clr for common language runtime support). I am able to add the a reference to the dll with another C++ project, which is also compiled with the /clr option, and the entire application runs fine. The problem comes when I try adding the .dll project reference to a test C# project and add a "using MyCPPNamespace" to my C# class. I don't see the new C++ project namespace anywhere within my intellisense in the C Sharp project and I can't just add it as a using. I thought compiling my native C++ project with the /clr option allowed us to add references to these projects in other manage ...Show All
Windows Live Developer Forums Question
My actual site warm2007.blogspot.com can be moved to a live space with the same template i think that it will be more confortable.. ...Show All
Visual Studio Nested class becomes ordinary class in Contents-tab
Below, you'll see a class called MyComparer containing a nested enumerator called Type. If you generate documentation for this class using the August CTP, you'll notice that the Contents-tab of the generated documentation file contains both the MyComparer class and the Type-enumerator. That is good. However, it shows them as follows: - Namespaces - NestedTest namespace - MyComparer Class - MyComparer Constructor - Compare Method - Type Enumerator To a user, it looks like the Type enumerator is simply a class in the NestedTest namespace; he can not see that the Type enumerator really is a nested class in MyComparer. Is it possible to make this more clear namespace NestedTest { public sealed class MyComparer : IComparer { p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is it?
I just downloaded xna after messing with c# for a while, and when I installed xna and clicked on the link in the start menu, it just went back to c#. My question is "Where is it " Was there something I missed Or am I doing something wrong Thanks for the support Game Studio Express is kind of like a plug-in for C# Express. You use C# Express to create XNA games along with the Game Studio Express parts. When you create a new project you'll see the options for Windows and 360 games. That's one of the GSE parts. ...Show All
Software Development for Windows Vista validation failure when importing managed card from a file
After the signature is checked, what further validations are performed on a managed card while it is being imported from a .CRD file Is there a way to enable debugging to find out more about what goes wrong when it fails Upon importing a managed card I generated from a file, the signature appears to be validating (I'm past earlier error messages by adding the issuer's certificate temporarily to the trusted root CA list), however a dialog box appears with: The data present in a card could not be validated. and the import fails. The event log shows event 263 ... The following information is part of the event: An unexpected element was encountered during reading. The card was generated by the sample CardWriter for a ...Show All
SQL Server Problems With SQL 2005 SP1 (x64)
Hi, After installing SP1 onto our SQL x64 2005 box (running Server 2003 x64 R2), I have come across two problems. The first is that the install seems to fail for database services (and I see I'm not the only one), declaring the following: Hi I had the same problem and found the solution in KB 918695 "The problem occurs because the master database file is not in the same location as the Resource database file for the instance of SQL Server 2005 on which you install SQL Server 2005 SP1. You may have previously moved the master database from its originally installed location. When you move the master database, you must make sure that the master and Resource database files are located in the same folder. If you only ...Show All
Windows Forms Add chliditems to childitems in a menu
Hi, I have trouble with adding a childitem to a childitem in a menu. I my read my menuitems from a database and loop trough it like this While drMeny.Read Dim categoryItem As MenuItem If drMeny( "M2_LVL" ) = 1 Then // toprow categoryItem = New MenuItem(drMeny( "M2_NAME" ).ToString()) categoryItem.NavigateUrl = drMeny( "M2_URL" ).ToString() menu.Items.Add(categoryItem) Else Dim childrenItem As MenuItem = New MenuItem(drMeny( "M2_NAME" ).ToString()) childrenItem.NavigateUrl = drMeny( "M2_URL" ).ToString() categoryItem = menu.FindItem(drMeny( "M1_NAME" ).ToString()) categoryItem.ChildItems.Add(childrenItem) End If End While this works fine untill ...Show All
Visual Basic Environment Variable question
Hi everyone, I am having some trouble finding the environment variable used to display a computers RAM info and Processor info. Any help is appreciated. Thanks in advance, Ok, I am having some trouble setting up to use WMI. When I try to use: Imports System.Management I get the error: 'Imports' statements must precede any declarations. I feel kinda bad bugging you, but, Im just trying to learn. Can you clarify on how to use that Thank you very much ...Show All
SharePoint Products and Technologies Group by views in a list
Hi, I have a list on my SharePoint site with a view on it where I group by a particular column. This column has 5 possible values. How can I ensure that a header for each value is shown whether or not there is data corresponding to that value For example - say that the column name is "Status" and it can have values "Open", "Closed" and "Pending". How do I show a header for a status of "Pending" if i don't have data for my list with this status Thanks. There is no way to force the header to show up since it does not show up in any of the rows. SharePoint does not look at the group-by field and determine all possible values for it (since it co ...Show All
.NET Development view the soap message generated by a webservice
Hi, is there any tool available that shows me the native SOAP messages for request and response when I invoke a webservice client (implemented in c#) from visual studio I want to find out why I dont get back the expected data from the server by checking the soap message that is sent to the server. Thank you for your help, Thomas There are number of tools exist to trace server <- -> client exchange. My favorite is WebServiceStudio, you can download it form gotdotnet site: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c Thanks, Elena ...Show All
Windows Forms Displaying Database information in ListView
I created an address like database with first and last names and include a photo location in the database. Now I want to use ListView to display the photo and name of each row(person) in my database, but I don't know how to retrieve a string from a single cell in my database. can anyone help try this: theListView.DataBindings.Add( propertyNameOfControl , theDataSet.Tables[0] , ColumnName ) Alternatively I believe you would have to add the items manually to the listview, going through each row of data and picking out the column you wish to add to the listview ...Show All
.NET Development Querying DHCP information from Windows DHCP Database
Hi all, Is it possible using WMI, to query the DHCP info wherein I can get my DHCP Server's Address Leases,Reservations,Hostnames,Mac Address . The DHCP GUI is able to display it, so, is there any way I can get this information in C# using System.Management namespace . Thanks. http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmisdk/wmi/wmi_tasks__networking.asp has all the info for you ...Show All
