SteveDyte's Q&A profile
SQL Server Line Graph One Data Point
Re: SQL Svr 2000 VS.NET 2003, with SQL Reporting Services (RS) I have a graph that is requested to be a line graph, with data starting in Jan (hence one data point). The graph lines are not showing, but markers do show. Can a line graph, in RS, produce lines when there is only one month's data. If so, pray tell, how Y axis is a count of projects by Complexity levels. X axis are the months, which will range from Jan to Dec, when all the data is in. I need to show Jan results. A line chart "connects" data points. If there is only one data point at all, there will be no line. ...Show All
Visual C++ ostream::seekp not working.
After I converted the following from VC 6.0 to VS 2005, the seekp() call stopped working. Can anyone confirm that this is a bug, or have I configured something incorrectly std::osftream myStream; myStream.open( " myFile ", std::ios_base::out | std::ios_base::app ); myStream << < xml version=\"1.0\" >\n<LogFile>\n"; myStream << "</LogFile>"; . . . myStream.seekp( -10, std::ios::end ); myStream << someText; myStream << "</LogFile>"; The clear() has no affect. According to ...Show All
Visual Basic Problem with NumericUpDown (VB.NET 2005 B2)
Hi again from Spain. I'm working with a NumericUpDown control and i have this problem. I set a Minimun (1) and a Maximum (200) to the control. If the user write 210 in the control... automatically change the value to the maximum (200). But... i don't want it. I need to show a MSGBOX with an alert and then... allow the user to change the value by hand. How can i deactivate this function A very big thanks from Spain! ;) The function works well, when I am changing the value in the UI. But the question is- is it possible to display the value that is greater then Max when you are loading NumericUp ...Show All
SQL Server MDX in MS Reporting Services
Hi (All using 2005 release) I've written a MSRS report based on an OLAP data source which is working fine in the report designer but once I have deployed it to the report server & attempt to browse it I get the following errror: An error has occurred during report processing. Query execution failed for data set 'DataSet1'. Line 1: Incorrect syntax near '{'. Line 1: Incorrect syntax near 'Tbl Acc Codes' It seems to be pointing to an mdx error although I've constructed the query just by using the drag & drop tool. Are there any known problems with MSRS & MDX & if not can any of you MDX guru ...Show All
Windows Forms listbox?
hi, i have a dropdownlist populated from database,button when pressed whatever is selected from the textbox will be the items in my listbox and i also have a delete button incase the user changes his mind to delete the items in the listbox and a submit button which will insert the items from the listbox to a new database. my code is working fine. My database table looks like this: ActivityName(text) | ActivityCode(value) However, there's a change in my table so my form also changed: ActivityName(text) | ActivityCode(value) | PercentWeight. my dropdownlist is still the same(populated from a datab ...Show All
.NET Development Where gets Intellisense the descriptions of methods, properties, ...????
Is it possible to add a discription to my methods so the intellisense can display it The answer is great if: You are using C# 1.1 or .NET 2.0 Your class is within the same solution. I am using VB.NET 1.1 to access a code library that I wrote in C# 1.1. Is there a way to show Intellisense descriptions for my VB.NET code ...Show All
Windows Forms UpdateAsync() hanging
In using the example code from MSDN for programmatic update, my code gets to the async call, but fires no events. I changed the async code for checking for an update to synchronous code and it works fine. But then the call to UpdateAsync() fires no events and downloads no bits, even though it knows that there is a new version. The synchronous Update() function works fine, though. Naturally, I want async so that I can get the progress notifications and give my user a progress update during the download. Some code... (splashScreen is a windows form that is open, non-modally, during startup. updateCheckComplete is a boolean flag that I use ...Show All
Visual Studio Team System Can't get app.config to work for test projects
I've got a test project that I need to get configuration for from an app.config. I'm using VS2005 RC1. There is an app.config file in the test project and it is set as "Copy to Output Folder = true". When the project gets compiled it does put app.config into the output folder, but it isn't renamed. The AppDomain that the test is running in is looking for a config file in TestResults\<TestRunName>\Out\vstesthost.exe.config Help! dhopton MSFT wrote: It does not need to be renamed.<br /><br />post beta2 -- which is what you are running -- you dont need to copy to output ...Show All
Visual Studio Express Editions .net question
I wish to write a VB program for an app that is only .net1.1 compatible (ie. the haven't upgraded it to .net2 yet) and consequently .net2 is not installed. Am I ok writing the program in Visaul Basic 2005 express edition which I understand is only .net2 compatible Phill hi, as far as i know and i'm still learning like you, vb express just use framework2, if you want to write programs that will just use 1.1 then you can use older version of vb like 2003 for example hope this helps ...Show All
Visual C# playing video file in c#
can anyone help me in running the video file in C#. If u have any links which descrips regarding "video streams and C# " tell me please. thanks and regards, Singam Hi, Follow these steps... Goto toolbox. Righ click and select the choose item. Dialouge will apear goto com components tab. There will be windows media player at near end of list select it. now windows media player control is added in the toolbox drag it to form. Set its URL property to the file location you want to play e.g. C:\demo.mp3 etc Hope this help ...Show All
Visual C# how to import data into excel
hey. i was just wondering if anyone could teach me how to extract data into an excel file from a c# windows application that i created. (e.g. data from a listbox into a spreadsheet) thanks ^^; Hi, You can use Microsoft API Office interop libraries for interfacing with office tools. Here is a small code snippet for you requirement. I feel it help you. Microsoft.Office.Interop.Excel.Application app = new ApplicationClass(); app.Visible = true ; _Workbook wkb = app.Workbooks.Add (XlWBATemplate.xlWBATWorksheet); _Worksheet wks = (_Worksheet)wkb.ActiveSheet; wks.Visible = XlSheetVisibility.xlSheetVisible; wks.Na ...Show All
.NET Development Check if Assembly is already loaded into AppDomain
How can we find whether a Assembly is already loaded into a AppDomain or not Thanks, Suresh. I would verify that your assembly is correctly named and that the type name is the fully qualified path to your class. It is possible that either the assembly you are referencing isn't the one containing the type or the type name is not fully qualified. Either one will cause a problem. If they are accurate then look at the list of loaded assemblies through the debugger to verify that the assembly you expected was loaded. If that works then try a direct call to Activator.CreateInstance to see ...Show All
.NET Development Program running at HI memory usage, please HELP!!!!!
Hi, I'm using vb.net 2003. Something is not making sense while my program is running. While my program is running, and I open the Task Manager, the Memory Usage of my program start running sky-hi. Something isn't right, a program that's nearly 2MB in disk size, can't use 400MB RAM can someone please help me in sorting out the problem... Thank You You can have a 1kb program that uses 1gb of ram. I don't see why this would not be normal... If you wan't help then tell us what you are doing in your program. ...Show All
.NET Development Sockets: two way comm. and extended conversation?
My ideal is to have a continuoulsy open connection where either system can initiate a conversation, and that conversation can consist of multiple sends and recieves. The simplest socket connection is delightfully easy: client.connect stream.write stream read But that is only a single call + response. Is is possible to have multiple write + read pairs in some kind of loop All the examples I have seen always close the connection. Is this required, or is it really just for resource conservation Finally, if I want either system to be able to initiate a conversation, is the only solution to have both systems running both ...Show All
Visual Studio Tools for Office Trust Warning
I had already posted this in my Trust Load Customization post. I've tried so many things my head is spinning. I need more help and wasn't sure exactly where to post this follow up in my original post. I'm getting a warning that says "The assembly must be granted full trust before the solution will run. For more information see Help." It seems that the trust issue relates to the spreadsheet and not to my vb.net code (I think). The application runs in debug mode from within VS. It also runs if I run the Excel file that lives in the Debug folder. Since I've barely started it, I haven't tried to make a deployable application. ...Show All
