stabbe's Q&A profile
SQL Server pass multivalued parameter to server report
Hi all, I'm trying to pass a multivalued parameter to server report through ... ReportParameter rp = new ReportParameter("Name",new string[]{"name1","name2"}; ReportViewer.Serverreport.Setparameter(new ReportParameter[]{rp}). ... at running time, in the dropdown value list of paramter "Name", there are no CheckBox at the left of each value, but I really need these checkbox so user can choose the name they want. Then I set another parameter newName in the report side and set its value come from Parameter Name. Now there are checkboxes left of values, but no matter what I choose(click), the actual value for the newName is the default value i set in report-->report parameter--> ...Show All
.NET Development Deserializing System.Configuration.ClientSettingsSection
Hi We have a generic configuration framework which reads all configuration information from database. I have data for config section of type "System.Configuration.ClientSettingsSection" stored in database. When I try to read the config section data from database and deserialize into System.Configuration.ClientSettingsSection, I get the error "There was an error reflecting type 'System.Configuration.ClientSettingsSection'. ----> System.InvalidOperationException : You must implement a default accessor on System.Configuration.ConfigurationLockCollection because it inherits from ICollection. " Any help is appreciated. Thanks ...Show All
Visual Studio Express Editions regex.split paras into datagridview rows
Hi, I'm looking to be able to split paragraphs in my textBox1 separated by a blank line between paras and pop each para into separate rows in a single column unbound datagridview1 Using dataGridView1.DataSource = Regex .Split(textBox1.Text, "\r\n\r\n" ); paras are correctly split but... dataGridview1's rows get filled with the length of string in each para, eg: 86, 190,194, etc. How can I get each para into 1 row of this single column unbound DGV hi, yes i guess you asked the same question b4, if you can't return to your previous answer you can use my threads link at the top of this forum to get all your threads, even though your question is not clear , do you mean ...Show All
SQL Server can'd find SSIS for installation in Server2003SBS-PR
I bought a new HP server with Windows 2003 SBS Premium. I also was told buy the company how installed the server, that they installed all the components of SQL. When another company came to install a new business software for us, they told me that the Integration services is not installed. We tried together to install the SSIS with no luck. When we run the Setup(or used Add/Remove software) we couldn't find the Integration services check box in the list of the setup. I also asked assistans from the company that i bought the server fromk, and they also couldn't understand where is it. We have an HP Proliant server, Windows server 2003 small business preminum SP1, SQL server 2005. I was told that without the ...Show All
Visual C++ std::map link error
hi, every body, i created a standard c++ project in vc 6.0, and i must checked "Ignore all default libraries" in projects-->settings-->link, when i use std::map<int, int> and compile it, occured follow errors: dump.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Lockit::_Lockit(void)" ( __imp_ 0_Lockit@std@@QAE@XZ ) VisionMedia.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Lockit::_Lockit(void)" ( __imp_ 0_Lockit@std@@QAE@XZ ) tell me which library must be imported, i've not found it in MSDN. thanks very much MSVCPRTD.LIB (debug) or MSVCPRT.LIB (release). However, checkig " ...Show All
.NET Development Can't fill dataset when in query parameter type:datetime, need help
In my query i use the following condition: "WHERE table.fieldDT >= @a" where filedDT of type datetime in my application I set parameter this .sqlDataAdapter1.SelectCommand.Parameters["@a"].Value=DateTime.Parse("01.01.2005"); and then filling of dataset fails this .sqlDataAdapter1.Fill( this .dataSet41); //fail, return sytem error In configuration mode the query works OK! what's wrong with the converting datetime Hi the DataTime compairision aslo compair the time so there will be a diffrence between time and no record will be found if the time differs. So you can compair the time between two times eg .12/12/2003 12:00:59 and 12/12/2003 23:59:59 so all the records fall in 12th D ...Show All
Visual Studio Team System Error connecting to Team Foundation from all client machines
Hello! Could someone help me resolving the TF31004 error TF31004: Team Foundation encountered an unexpected error while connecting to Team Foundation Server <server_name>. Wait a few minutes and try again. If the problem persists, contact your Team Foundation Server administrator. I get this message when connecting to TFS from all client machines. TFS is up and running and I don't have any issue working in VS2005 on the server itself. Thanks! I was not able to connect to any of the clients prior to the reboot. There were no windows updates around that time. But, I found the following Application event log errors: Windows cannot query for the list of Group Policy objects. Check the eve ...Show All
Smart Device Development update UI from Thread - control.invoke or controlinvoker?
This is a CF 1.0 application. I need to load an image in a background thread and use it in the UI thread. I'm a little confused. There have been tutorials that have the background thread write to a public variable in the Form, then Control.Invoke when they're finished to have the UI thread update the form. (No locking). This looks very simple, I'd like to do it this way. The following is the way the tutorial described - the thread writes directly to the Form, but not to any control on the form. Is that "legal" public class MainFrame : Form { private int progressBar1Status = 0; public MainFrame() { InitializeComponent(); DoThreading(); } public void DoThreading() { Thread t = new Thread( ne ...Show All
Windows Forms Accessing to ext2/3, xfs on Windows
Hello. Ext2Fsd, CrossMeta, etc... programs to access to ext2/3, xfs on Windows. I'm trying to write a simple program like that, for example, when inserting a USB disk that is formatted to ext2/3 or xfs, it'll be able to judge the corresponding filesystem and display on Windows. If on Linux, reading the superblock and able to be judged by magic number, but I have no idea on Windows. I'm waiting for your help... Thank you. P.S. Please let me know references or related documents too... Accessing a foreign file system requires writing a device driver. The specific details of writing a file system driver are available only to a select few that have a special agreement with MSFT. ...Show All
.NET Development identity constraint not declare..Help~
Hi, I am new to XML and so is MS Visual Studio. I was trying to use Visual Studio to build a XSD, but it always give me an error saying that my identity constraint is not declare. Here is my code: < xml version ="1.0" > < xs:schema xmlns : xs ="http://www.w3.org/2001/XMLSchema" targetNamespace ="http://www.myschema.com/schema.xsd" elementFormDefault ="qualified"> < xs:element name ="sportDB"> < xs:complexType > < xs:choice > < xs:element name ="Teams" minOccurs ="1"> < xs:complexType > < xs:sequence > < xs:element name ="ID" type ="xs:integer" minOccurs ="1" /> < xs:element name ="City" type ="xs:string ...Show All
Visual C++ lnk1181 and lnk4076....what am i doing wrong?
hello everyone, im very new to the c++ language and have been working on visual c++ 2005 for the past few weeks. i transferred a whole bunch of code from visual 6 to vc++ 2005 and as expected got a whole lot of warnings and errors. for the past few days i have been stuck due to the following two messages: LINK : warning LNK4076: invalid incremental status file 'exe/ECG_Monitor_Patient.ilk'; linking nonincrementally LINK : fatal error LNK1181: cannot open input file '..\lib\bt_comserver.lib' for the first message, i went into the linker settings and changed the ENABLE INCREMENTAL LINKING field to NO and then I got the LNK4075 warning. I have no clue as to how to deal with the second message. I AM A NEWBIE. PLEASE HELP. ...Show All
Visual Studio 2008 (Pre-release) PreviewMouseLeftButtonDown Handled=false
Hello all I am using a TabControl to present data. before navigating to another tab I need to check whether the data in the current Tab was saved or not. I do this like this and it works great. BUT I present the user a yes/no/cancel dialog, asking whether to save the data: Yes - save the data and move on (MoveOn=true) No - do not save the data but move on (moveOn =true) cancel - stay in the current tab (moveOn=false) where e.handled = true (Cancel) it worked great. But when clicking on the yes or no option in which both cases the e.handled = false. The user stays on the current tab and the Selected tab is not shown. Why is that Here is my code /// <summary> /// check whether current tab data has been save ...Show All
SQL Server datefirst in syslanguages
The accounting calandar for my project requires that weeks start on Saturday, not Sunday (which is the default for English). I want to set datefirst to 6 (Saturday) in syslanguages for English so that I don't have to set it for each date transaction. In SQL 2000 I hacked it by editing the British language to set datefirst to 6 and dateformat to mdy. Then I set all users of my database to use the British language. This has worked fine for years. In 2005 I don't know how to edit sys.syslanguages to make these changes and I don't know any other way to globally set the datefirst to 6 (for English preferrably). I am very frustrated with SQL Server 2005. Any help would be appreciated. Thanks, Sue ...Show All
Visual Studio Team System Custom Data Generator Performance Issue with Recursive Method
Has anyone experienced any issues with recursive methods utilized inside custom data generators If the method was implemented in iterative mode then the OnGenerateNextValues() works fine. However, during recursion the DBPro application hangs... Please confirm if others are seeing this... See the difference between working and non-working samples below. ---- working sample ---- using System; using System.Collections.Generic; using System.Text; using Microsoft.VisualStudio.TeamSystem.Data.DataGenerator; namespace E2D.DataGenerator { public class FibonacciGenerator : Generator { private int _fibonacciResult = 0; private int _fibonacciCounter = 0; [Output] public string FibonacciResult { get ...Show All
Windows Forms Property value is not valid - PropertyGrid
Hi, I have got a propertygrid control. Now I want to replace the message box "Property value is not valid". Is this possible Any help would be great. Cheers, Franz It would be beneficial to all developers if somebody would post the solution on the forum. Can somebody please oblige rather than privately messaging I certainly would if I had a solution. Thank you. ...Show All
