Flame Thrower's Q&A profile
SQL Server Drill down in SSRS with Dataset populated using MDX Query - Need help urgently!
Hi For drill down in SSRS , i retrieve the ClassId and its ParentClassId in a query similar to the one below NONEMPTY ([Classification].[Classification Id]. CHILDREN ) * NONEMPTY ([Classification].[Parent Class Id]. CHILDREN ) I then group the Table Row wrt the ClassId and the Parent ClassId respectively, still the data is getting grouped properly. What could be the problem Thanking you in advance Sai ...Show All
.NET Development AddRange
For example I have the following code class Base { } class Derived : Base { } ... List<Derived> derivedList = new List<Derived>(); derivedList.AddRange( new Derived[] { new Derived(), new Derived() }; List<Base> baseList= new List<Base>(); baseList.AddRange(derivedList); // cant do this! Why cant I add a List of Derived to a List of Base with AddRange Why has it been designed that way Is there any particular reason for that I am from c++ background Why AddRange doesnt have the following interface void AddRange<T2>(IEnumerable<T2> elems) where T2 : T So that we can write something like class Foo{} class Bar : Foo {} FullList<Bar> bars = new FullList<Bar>(); bars.AddRange(new Bar[] { new Ba ...Show All
SQL Server Failure to open SQL Server with given connect string.
So, I have a Server running Windows 2003, windows firewall offline, with Sql Server 2005 and SQL Server 2005 Mobile Edition. This server is running behind a firewall. When I try to PULL data with RDA from the internal network, all work's great! But when I try it from the exterior, internet, I always receive this message: Failure to open SQL Server with given connect string. [ connect string = Provider=sqloledb;Data Source=<MY INTERNET IP>,11433;Network Library=DBMSSOCN;Initial Catalog=testdb;User Id=sqlceuser;Password=test; ] On my firewall, I unblocked port 80 and 11433 and mapped them to my internal server IP with port 80 and 1433. I use port 11433 on internet because my ISP block the 1433. How can I solve this pro ...Show All
Visual Studio 2008 (Pre-release) Unable to populate WPF Extender Control correctly....
I have populated a observableCollection with some information... I have checked this information while debugging and it is populated correctly. Then in the WPF application I have created an extender control and bound it to the observable collection: <Expander Width="Auto" Height="Auto" x:Name="Expander" Content="{Binding PhotoSets, Mode=Default, Source={StaticResource PhotoSetCollectionDS}}" ContentTemplate="{DynamicResource PhotoSetsTemplate1}" Header="Sets"/> The PhotoSetsTemplate1 is defined as follows: <DataTemplate x:Key="PhotoSetsTemplate"> <ListBox Name="PhotoSetsListBox"> <ListBox.ItemsPanel> <ItemsPanelTemp ...Show All
Visual Basic Form Refresh During extensive process
Hi, I need to refresh a winform (vb.net 2005) during an extensive process. The process is a DTS package execution (the process takes more than 5 minutes). I need to show to the user in a listbox the failure or success of every steps in the package during their execution. The form seems to frozen and even i use a timer to refresh it, it doesnt work. I tried the Application.DoEvents() too...but nothing seems to work. any idea sample code Thanks mcrisf application.doevents is bad practice - can cause unpredicatable results at times. The best thing to do in such a situation, when a process is time consuming is to use Threading. Threading will make your app respond and the way it works is that in a ...Show All
Windows Forms Slow User Defined Control
I'm creating a custom control that has contained within it a large number of buttons. The code is extremely slow (taking about 12 seconds to display). I've had no success in making it faster. The problem seems to be centered around a single statement: Controls.Add(my_button_ctl); I tried to use the Controls.AddRange(...) member instead of Add(), but there was no speed improvement as was implied in the documentation. If I remove the Controls.Add() call (or AddRange), the display is almost instant. Is anyone aware of a way to speed up a user defined control that contains a large number of button controls In my case there are up-to 550 buttons contained on the control and I would like to get them displayed in under 1 second. The custom ...Show All
Visual Studio Has anyone got the "TypeBrowser" working?
I've written a guidance automation package based on the WCF service package provided for download but I've got a real problem with the type browser picker gadget :( This being the "..." that you should be able to click on when setting up a data contract or fault contract in order to select a data type for you member rather than having to type in the full name. It doesn't matter what I do I just cannot get it to work. It throws an exception from the ReferencedAssemblies method as it is hard coded to do: /// <summary> /// Gets a collection of all assemblies referenced by the <see cref="T:System.Type"></see> . /// </summary> /// <value></value> /// <r ...Show All
Visual Studio Express Editions MSN Style notification...?
Hi im lookin on how to add a notification of non-activation when the program is started... MSN style would be nice any other style is fine with me... Well I gues if thats what you are looking for - then you found the solution for this at http://www.codeproject.com/cs/miscctrl/RobMisNotifyWindow.asp All you need to do is become a member to download the sourcecode and demo ...Show All
SQL Server Cube Partitions Setup
I have use the cube partitions in AS2000. It allows us to use the data slice to define the subset of the cube data. However, I don't see this in AS2005. If I partition the cube in monthly basis, then how AS2005 to handle the query. Is it look through all the partitions since it don't have the data slice setup In AS2005 partition slices are defined bit differently. To define what data should go into partition you can define partition binding. You can change source for your partition to define restriction on the data coming into Analysis Services. As for Anlaysis Services, it will detect the slice automatically. ( this is MOLAP case) Edward. -- This posting is provided "AS IS" with no warranties, and confers no r ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3 Problems with exported mesh ...
Hello, i have three little problems with exported mesh: 1: The 3ds max .FBX exporter don't work because of the old folder name in 8 char so i can't save my meshes in ("c:/mes documents/...) 2: So i exported a .X mesh it seems to have a problem: it has a -90° on the X axis. 3: It has no texture, heres my drawing code using basiceffect [code] void DrawTestModel() { Matrix[] transforms = new Matrix[_model.Bones.Count]; _model.CopyAbsoluteBoneTransformsTo(transforms); angle += 0.01f; _effect.World = _world = Matrix.CreateRotationX(MathHelper.ToRadians(90)) * Matrix.CreateRotationY(angle); _effect.View = _view = Matrix.CreateLookAt(new Vector3(0, 2000, 3000), Vector3.Zero, Vector3.Up); _effect. ...Show All
.NET Development CLR Debugging Services - need help please!!!!!
Hi All I received this debugging error while trying to run an app today. Application has genereated an exception that could not be handled. Process id=0xc90 (3216), Thread id0xc9c (3228). Click OK to terminate the application. Click CANCEL to debug the application. Has anyone got any ideas what the reason for this error could be It means your application generated an exception that was not caught. There's millions of reasons why/how this might happen. If you post the stack trace someone might be able to offer some detail. ...Show All
Software Development for Windows Vista Custom Activities and adding to the Toolbox
I've created a custom activtiy derived / inherited from the HandleExternalEvent. It compiles fine. When I try to add it to an Activity Library by going to the ToolBox and selecting Choose Items / Activities and Browse to the DLL, it gives me "System.ArgumentException: Toolbox Service not found as Microsoft.Workflow.VSDesigner.ActivitiesToolboxPage.AddComponentsDialog.AddItems(string Filename)" I've also tried adding this custom activity directly to a Sequential Workflow instead and I get the same thing. What is wrong Do you get this error message only when you derive from HandleExternalEvent or in any other custom activity too. Try deriving from CompositeActivity and see if you are getting the same error message. And last ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Blitting?
I've checked through the XNA Documentation, but there doesn't seem to be any way to 'blit'. For those of you unfirmiliar with 'blit': Blit is a way to draw something. For example, say you create a "Texture2D" variable, set the size etc... But the texture is blank. The normal way to create a texture to this is to load up a bitmap image with it through the ContentManager, right But what if you want to use a whole sprite-sheet with many images Back to the blank, say, 65 x 65 bitmap image, you obviusly don't want this 2D image of the player to be a whole 1024x768 sprite-sheet. So this is where I used blitting in other programs, it basically asks for the x, y co-ordinates, and the length of the bitmap and takes a picture from that x,y and 'c ...Show All
SQL Server Problems with performance when programmatically printing large amounts of pages
We are using VB.NET 2005 to develop a WinForms application that uses SQL Server 2005 Reporting Services to produce reports. Originally we tried using code found on Bryan's WebLog, http://blogs.msdn.com/bryanke/articles/71491.aspx , but found that for reports of 300 pages it was taking about 2 minutes to render each page. When using RenderStream to render idividual pages, reports of about 20 pages printed without a problem, but for reports of 300 pages we recieved the follwoing error: "The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database." Is there some cache or something that we should be using Any ideas appreciated. -- Leah The ...Show All
Windows Forms Reg Paging concept
Hi all, Can anyone explain paging concept in asp.net. venkat. Assuming you are talking about this type of paging, have a look here. http://aspnet.4guysfromrolla.com/articles/091003-1.aspx ...Show All
