Dan Cooperstock's Q&A profile
Visual Studio How to disable the Parameter prompt for Crystal Report using VB.Net
I'm having a problem whereby I can't disable the parameter prompting in VB.Net with the following codes:- Dim crPDV As ParameterDiscreteValue Dim crPFD As ParameterFieldDefinitions Dim crPFL As ParameterFieldDefinition Dim crPV As ParameterValues crPFD = CR.DataDefinition.ParameterFields crPFL = crPFD.Item("paramterName") crPV = crPFL.CurrentValues crPDV = New CrystalDecisions.Shared.ParameterDiscreteValue crPDV.Value = valueToPass crPV.Add(crPDV) crPFL.ApplyCurrentValues(crPV) CrystalReportViewer1.ReportSource = Application.StartupPath & "\TheReport.rpt" CrystalReportViewer1.Show() Any error with the above codes OR do i need to add any additional code(s) that able for me to pass the parameter value direc ...Show All
Visual Studio Express Editions Totaling a table
I want to be able to have the program calculate the total of a column of values in a table. How would I go about doing this I played around with this for a while, and cannot see a way to do this... Any help would be greatly appreciated. Thanks, -Matt Thank you for your help. This is probably a stupid question, but I have the table built and everything, but how do I make a query I clicked on the appropriate TableAdapter, and there is an "Add Query" option, but when I open that window I'm not sure what I'm looking at. As you can see this is very new to me. Thanks again for all the help, I greatly appreciate it. -Matt ...Show All
Visual Studio 2008 (Pre-release) LINQ to SQL Feature Request: Automatic generation of temporary Stored Procedures based on LINQ to SQL statements
Hi, I would like to see a feature in LINQ to SQL, where we can group a set of LINQ to SQL statements into an object, which could be converted into a code by compiler that creates a temporary stored procedure in the target database. This way we could run a single or set of LINQ to SQL statements as stored procedures and get the benefits of stored procedures like eliminating round tripping to database, pre-compiled queries, etc. At the same time we will not be dealing with permenant stored procedures. This technique will have all the benefits of writing stored procedures in C# and being executed inside database, which is a perfect world when compared to straight LINQ to SQL queries and TSQL based stored pr ...Show All
Windows Forms UndoEngine and multiple IDesignerHosts
Hi! I am rehosting the WF designer (not quite the Forms designer but it should be the same) and I'm trying to get the undo/redo capabilities working. Other than in most of the examples I have not a single design surface, I have multiple each one on a separete tab (like in VS). I'm managing these using a DesignSurfaceManager. The ctor of the UndoEngine (my DesignerUndoEngine which derives from UndoEngine to be exactly) expects to find an IDesignerHost in the IServiceProvider it gets. But in my case I have multiple IDesignerHosts, each surface is one for its own. How can I get the UndoEngine to work Do I have to create an UndoEngine for each design surface If so, how can I get a "global" undo across all surfaces How doe ...Show All
Visual Studio 2008 (Pre-release) Developing for the Enteprise - Guidance
Hi, I'm looking for some good books/articles that cover distributed systems in enterprise environments. Those mustn't necessarily cover WCF though it would be great if they did. I'm particularly interested in how to design applications for redundancy/failover, scalability, etc. Any help is greatly appreciated! Tom Message security is bad because it adds overhead to the transport layer and as previously mentioned, performance is of the utmost importance here. ...Show All
Visual Studio 2008 (Pre-release) ReceiveTimeout: What is the price?
I've been playing with the value of ReceiveTimeout in order to eliminate MessageSecurityException that we are getting after 10 minutes of inactivity. Increasing the value seems to work, and I tested 10 minutes, 1 hour, and even "Infinite". Now, I was thinking about how scalable increasing the ReceiveTimeout is. What runtime resources does the server dedicate in order to maintain higher timeout values What would the ramifications be for, say, 1000 users that may be "connected" to the server A related question: are there hard WCF timeouts that supersede config settings I've heard somewhere that there is 24 hours timeout that is imposed by the WCF (but this can be completely wrong). Thank you. ...Show All
Windows Forms Rows Removed
I have a DataGridView where the user can delete rows. I do the delete in the DataGridViewRowsRemovedEventHandler. This works fine. Except when the user does a search again to refresh the DataGridView the rows are removed and the delete happens again. So then I tried to actually check for the delete key to be pressed but... well I am lost. private void DataGridView1_RowsRemoved( object sender, DataGridViewRowsRemovedEventArgs e) { dataGridView1.EndEdit(); if ( MessageBox .Show( "Are you sure you want to delete this row " , "Confirm" , MessageBoxButtons .YesNo) == DialogResult .Yes) { cnSQL = new SqlConnection (ConnectionString.Text); cnSQL.Open(); cmdSQL = new SqlCommand ( ...Show All
SQL Server Parameter visability dependant on a parameter?
Is it possible to change the visibility of a parameter based on a boolean parameter that a user can view in the report So you have one parameter that is a boolean value defaulted to false, when the user changes the parameter from false to true another parameter, previously hidden, is then displayed. Thanks Dynamically hiding certain parameters in the report viewer UI is not supported directly through RDL. You would need to implement your own custom frontend for handling this parameter logic and then send the selected parameter values to Reporting Services (e.g. via URL access, or by using the report viewer controls in local mode). -- Robert ...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
Software Development for Windows Vista Any MSFT website supporting CardSpace at all ?
So I have Vista RTM running since more than a week now, however until now I haven't come across any MSFT (not to mention other corps) that are supporting CardSpace. How will MSFT try to convince people using this technology if they themselves not using it on RTM Or did I miss a site that does support it It is not something that as a whole, we can just turn everything on, and have support on our websites. It was necessary to ship the client (Windows CardSpace) before we could get adoption moving. While you don't see any sites right this moment, we have work going on all over the place, and as we proceed into the future, these websites will begin supporting CardSpace for authentication. Given the radi ...Show All
Visual Studio Express Editions Inherits:-
I've been dealing with a single form form1 only so far, and now that i want to be able to be directed to another form once i click on a button, say form2. Is inherit the way of doing so What should i do Use code such as the following Public Class Form1 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim x As New Form2 x.Show() Me.Close() End Sub End Class However you will need to go to Solution Explorer -> My Project and change the shutdown mode to close when last form closes, by default its probably close when startup form closed. That should sort you out. ...Show All
Visual C# Search a String (Jagged Array)
My Declaration string[][] MyJagAry= new string[115][]; MyJagAry [1] = new string [20]; MyJagAry [2] = new string [40]; - - - - - MyJagAry [114] = new string [60]; MyJagAry [1][5] = " Windows Vista Business is designed to help keep PCs running smoothly and securely so you are less reliant on dedicated IT support. " ; MyJagAry [2][10] = " Windows Vista Enterprise is the premium edition of Windows Vista, with all the features in Windows Vista Business plus extra capabilities that can help lower IT costs and improve data protection. " ; - - - - MyJagAry [114][15] = " Windows Vista Ultimate is the most comprehensive edition of Wi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Resonable Expectations for XNA Game Studio Express?
Based on my understanding of what I have read so far I have the following assumptions (please correct me where I am wrong) and questions: With the XNA Game Studio Express I will be able to develop PC games and with a developer membership I will be able to compile a version that I can transmit localy to my XBox 360. In the first incarnation that will be released there will be no support for networking (ie. Live) online multiplayer. Is there a legal method to distribute content created from XNA Game Studio Express to specificaly targeting the XBox 360 envirionment (ie. Can you legally provide compiled or uncompiled games with the intent for other developers to download and run your creations ) Will there be any means available for XNA Game ...Show All
SQL Server After deploying a Business Intelligence project how to recreate the OLAP security
During development the project is focus on schema and schema changes and test security. When I I deploy the database to production, I end getting the development security in the production database. How does one create a script that recreates the security in the production environment so that I can be reused it after the deployment. The synchronziation wizard is not appropriate since it moves data as well. In SQL Server Management Studio you can access Script related menu commands from the context menu. All management dialogs in that program also have Script button on the toolbar. An object can be scripted and script re-executed on another server. Additionally you can ...Show All
Visual C++ Compiling Problem. Function throws exception. Please help.
I hope someone with some real programming experience could help with this problem. It may even be something basic and easy for someone who knows what they're doing... I've been trying to help myself but I'm getting nowhere with this. I can post any outputs, source code, logs, settings, etc. , that's requested. I'll start with posting the compiler warning that's going to make me start drinking. Compiling... nt.cpp .\nt.cpp(484) : warning C4297: 'omni_thread_wrapper' : function assumed not to throw an exception but does The function is extern "C" and /EHc was specified Warnings are normally ok when compiling but this one causes the program to crash upon startup. This is the function in nt.c ...Show All
