unknown1987's Q&A profile
Visual Studio 2008 (Pre-release) jpeg from System.Windows.Controls.Image
I need to generate jpeg files from Image objects. How is this done If I understand you correctly, you want to save JPEGS from an Image element, is that correct If so, // Assuming that img is the name of your image element. BitmapSource bitmap = img.Source as BitmapSource; if (bitmap != null) { JpegBitmapEncoder jpeg = new JpegBitmapEncoder(); jpeg.Frames.Add(BitmapFrame.Create(bitmap)); using (Stream stm = File.Create(...)) { jpeg.Save(stm); } } ...Show All
SQL Server "Syntax error or access violation" - Parameters in SELECT statement
Hello. Recently I've been receiving this " Syntax error or access violation " error message on an existing report. I don't recall making any changes to this report recently, or ever getting this error message before, so it seems peculiar. The report actually seems to work fine in 'Layout' mode, in 'Preview' mode, and deployed to the browser... but it just gets the error message in 'Data' mode when I click the 'Run' button to run the SQL statement. This script works: SELECT 'asdf' AS Expr1 FROM bi_LEADS_dim_lead WHERE ( @AssignedYear = 2007) This script does NOT work: SELECT @AssignedYear AS Expr1 FROM bi_LEADS_dim_lead Is there a rule that the report Parameters cannot be used in the SELECT statement ...Show All
Smart Device Development eMbedded Visual C++ support?
Hi, I am new to embedded world, I need to port an active-X control developed in ATL to Win CE. After going through few newsgroups, I am able to figure out that I need to install eVC 4.0 to achive this task. On my computer these are the software already installed. Visual studio 2003 Professional edition edition, Visual studio 2005 Team edition for developer, Windows CE 5.0 Emulator Windows Embedded CE 6.0 (Evaluation version). But now when I try to installed, it start looking for Windows CE platform Manager ( I am not sure whether this is the same platform builder, which is integrated with VS 2005, using Win CE 6.0 installer) and it get failed. It returns an error message " Set up encounter problem ...Show All
Smart Device Development Questions about Smartphone's programming
Hello, I am a novice at this and I have some basic questions (may be quite silly). Well: How many ways of building a new window/view are there in Windows Mobile 2005 I tried to do it creating a new Form and make Application .Run( new Form2 ()); where Form2 is the new created view. The trouble comes when, at the exit of Form2, the system shows an error: "An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional information: ArgumentException" Which are the tasks of Form2.cs and Form2.Designer.cs files I think that Form2.Designer.cs is the one who build the view, and the other one makes the main tasks. When VS 2005 deploys the appli ...Show All
Visual Studio Express Editions Sizing items in a web browser box
My question, I have a web browser box accepting a RSS feed or any web information for that matter, is there anyway to size the incoming feed to fit in the size web browser box I place on a form. Thanks IrishWolf, Do you mean that you want to save the feedback from you websites Database is the best choice like SQL Server or some other DBMS. In your program, I suggest you to use the Session object on your server side and allow cookie configuration on the client side. If this description is not about what you want, please reply me and tell me the details in your project and tell me what is your problem in your problem or some other related problems. Waiting for your reply :-) ...Show All
Visual Studio Team System Create a new web site?
Hi, I read the article ( http://blogs.vertigosoftware.com/teamsystem/archive/2006/04/04/2512.aspx ). And I apply all of process successfully. I create a new Team Project. But, I couldn't use web site and source control. What should I do Thanks, Mustafa did u see the toolbars is disabled in SCE if so ...do the following.. 1. Open VS IDE and connect to TFS and in the Tools menu --> Options 2. Source control --> plugin should be Team Foundation Server on the right side of the dialog box.. 3. You could able to see the source control from the team project and also check whether you are having the admin rights..in TFS and Sharepoint Site and Reporting services.. Thanks. Kathir ...Show All
SQL Server Visual Studio VS ReportBuilder problem
Hi ! We have made a lot of reports using Visual Studio. Now some of our client would like to customize those reports. We have install ReportBuilder on their server to allow them to create their own reports. Everything is working fine when they are trying to create new reports. The problem is when they are trying to customize reports that we have made using Visual Studio. When they are trying to open those reports in ReportBuilder they get this Error: One or more unexpected Report Definition Language (RDL) elements of the following type have been removed: DataSet Microsoft.ReportingServices.ReportBuilder.ReportModel.Report: System.Web.Services.Protocols.SoapException: The operation you are attempting on item "/Data Sources/DataSou ...Show All
Visual C# create a browse componet
Hello.. Anybody knows how to create a folder browse control or another way to prompt for folder location (upload files to a site) Thanks, HI, I am using webforms (C#) I added a reference and when I add the libarary I dont get System.Windows.Forms.FolderBrowserDialog I get using System.Windows.Forms and nothing after the dot. and what am I looking in the toolbox what is the component name. Thanks, ...Show All
Visual C# bool and objects
I have an collection of objects(arraylist)...in my list is want to check to see if properties within my arraylist have changed by using a _IsDirty flag...but i get an error saying cannot convert object to bool can anyone help me out here [code languge="C#"] for ( int x = 0; x < ArrayList.Count; x++) { if (Convert.ToBoolean(Arraylist[x]) == this ._IsDirty) { } [/code] how should this be yes that looks ok. A better way would be to use the Generic List<> collection as you don't have to do any casting as you are right now....the Generic List<> will hold a type of an object (Tracking.BusinessObjects.OrderLegDetail in this case) which means you don't need to do any casting and can ac ...Show All
SQL Server merge replication - how can I synch
we have a merg replication running in three regions UK,USA and AU my question is in one of our test environment testers managed to get a few tables out of synch while the replication is out. we have re-established the replication since then and it worked fine untill they try to update records from those out of synch tables. as usual we get conflicts. we don't really know how many tables are out of synch either. we have about 500 tables. is there a way to synch tables from with in the merge replication thanks greg! I guess that helps only when you run into a conflict. But what I was looking for was fixing the errors before running into any conflicts. Remember the databases are in ...Show All
Windows Forms How to combine two Columns in DataGrid ?
Hi All, I want to combine two columns in a DataGrid. I have a SQL query which returns 4 columns from the database. I am able to show the result in datagrid using sqldataadapter, dataset. Right now datagrid column name has same name as the database column name. In DataGrid display I want to combine two columns and display results separating by a charecter. I am using Visual Web Developer, C#.NET and SQL Server 2000. For Ex. Current DataGrid Result LName FName Zip ID ------- ------- ------ ----- Mathew Sam 12345 001 Martha Frank 54321 002 Desired DataGrid Result Name Zip ID ------------------ --------- ------ Mathew,Sam 12345 001 Martha,Frank 54321 002 Please Help. Thank you. You can do it in you ...Show All
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren The Rows collection has two Add method overloads that let you populate the values. You can either create a DataGridViewRow, populate it however you want, and pass it to the ...Show All
Visual Studio Team System Security - still don't get it...
I have two Team projects and I am trying to set access permissions. There are contributors and administratora. Only administrators should be the only person who is allowed to delete the or create Team Projects. I though it might be done through the adminsitrators/contributors groups on the projects level but it doesn't seem to work. As soon as I add user to the licensed users group - they get all the rights right away. Now I am totally confused - without being addedto the licensed users group user can not get any access to the Team Server. But as soon as user added - other settings are don't have any effect. Even not being an administraotr or contributor users are able to edit projects or create new ones. And another thing which I don't ge ...Show All
SQL Server Import\Export Wizard Feature?
A new developer tried to import a data file using the Import\Export wizard. Unfortuantely, the file had several format errors and the process aborted after reading one bad line. (I imported it using a BIDS package with error handling. The file had 454 bad rows.) Are there any options in the I/E Wizard to log\skip errors but continue processing After all, the I/E Wizard is designed for quick-and-dirty use and if it can't "handle" erroneous data "gracefully", it is not a very practical tool. TIA, Barkingdog That's an interesting request - could you log it through the feedback site I can see a ton of difficult questions around how we would implement it to ensur ...Show All
.NET Development SocketException when registering channel: Possible bug in .NET Remoting
When registering and unregistering a TCP channel repeatedly, I often get a SocketException. It seems as though UnregisterChannel does not truly stop the TCP socket and unregister everything. The code below reproduces on my system. Am running .NET Framework 2.0 RTM / Visual Studio 2005 and no beta code was ever installed on this machine. The problem reproduces on two other machines but not a third. public static void Main(string[] args) { int i = 1; try { while (true) { ChannelServices.RegisterChannel(new TcpChannel(666), false); ChannelServices.UnregisterChannel(ChannelServices.RegisteredChannels[0]); i++; } } catch (Exception ex) { Console.WriteLine("Died at iteration {0}.", i); Console.WriteLine(ex.ToStr ...Show All
