Answer Questions
michale.yang How to get Count in GroupBy
I tried to translate the very common sql query Select Category, count(*) as NumberOfProducts from Products group by Category into linq syntax. I was able to write it like this: var orderGroups = from p in products group p by p.Category into g select new { Category = g.Key, NumberOfProducts = g.Count() }; Question: is there a O(1) way, to get the NumberOfProducts without using the Count()-Function running presumably O(n) Th ...Show All
offordscott Vertical Titles on Pie Charts
Hi to all, I had a recent problem with pie charts in crystal. You know the X and Y axises when it comes to showing labels on a Pie Chart. At work I have the X axis showing Service Providers/Companies. Its ok with a few companies but when we run a report over a database showing about a dozen companies the labels on the X axis of the pie chart all overlap and are unreadable. We are using Crystal Reports for Visual Studio .NET 2003. We cannot find ...Show All
Mark42 How add services for same ServiceHost port ?
Hi, I have this services : [ ServiceContract ] public interface ICat { [ OperationContract ] string SayCat(); } [ ServiceContract ] public interface IDog { [ OperationContract ] string SayDog(); } How I can configure all services for same ServiceHost Uri [] uriBase = new Uri [] { new Uri ( "http://localhost:9090/Service" ) }; ServiceHost host = new ServiceHost ( typeof ( Cat ), uriBase); ho ...Show All
deputydawg219 Nested Sub Report Feature in CR for VS .NET 2005 Beta 2
Hi, Is the nested subreport (sub reports within a sub report) feature is supported in CR for VS.NET 2005 Beta 2 When we open a sub report from the main report in the designer, and we right click in the designer of sub report, the sub report menu item is disabled and can't be chosen. If it's supported, how Look forward to the answer. Thanks in advance. Hello Keith, I have the same problem like others ...Show All
vino-msdba Databinding to a service method...
Using what seems to be the preferred approach for accessing WinFX services, is data-binding possible There are two approaches, I understand, for handling references to a WinFX service. In the first, you use the "scvutil" application to auto-generate proxy classes. These classes wrap all necessary logic to call a service. There is no direct reference to the service project in your consuming application, and you can generate these ...Show All
John RWB Provider sample with May CTP?
I've heard some talks about the May CTP having some sample providers that might offer some guidance on how one would go about making DLINQ available on other database platforms. Are they included in the download (I couldn't find them) If not is that something that is going to be made available Cheers, Steve Will these be in the next CTP which is coming in August (hopefully) :) ...Show All
Bill_H Class designer causes keyboard input to be ignored
In Beta 2 if the class designer is open and I try to edit the code file, all keyboard control keys input is ignored in the editor. For example the Tab, Delete, Space keys. Is this by design Brad Raulston Hi Ramesh, I have got the same problem with the keyboard and once it's happened It's impossible to get back to the correct working of the IDE, even closing and reopening Visual Studio. The have to reinst ...Show All
Hoahai [sharepoint] alter template single page to multipage
I made a single page site in sharepoint, can I alter the template so it becomes a multipage or create a multipage en import the single page Hi there: I've moved your question to the Sharepoint.portalserver.developement site, as your question is non-VSTO related and out of our domain knowledge. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.sharepoint.portalserver.development&lang=en&cr=US Thanks! Mike Hern ...Show All
GAHarlan KB 907417 & 908002
Hi; Asking new because I think this got lost in the message it was a reply to... Just to confirm, if I have run the latest windows update and it shows no updates for Word, then the fixes in KB907417 should be on my machine - correct I have never run the fix in KB907417 and on my dev machine it has version 7.10.5077.0 but my test system, which shows no pending office updates, has 7.10.3191.0. So it looks like I do have to install ...Show All
Swaff Exception of type 'System.Web.HttpParseException' was thrown in Service.svc
Hi, I used the WinFX service template to create a WinFX web service. I didn't modify the generated code and now when i try to build this project it throws the "Exception of type 'System.Web.HttpParseException' was thrown." in Service.svc file. I have no clue why this error is getting thrown. Thanks Madhu for all your help. You are amazing. Ashish Thanks for your qu ...Show All
Phizz Document Explorer not finding local docs any longer
The Document Explorer (accessed directly or from the VS IDE Help menu) was working fine for a couple of weeks. It no longer finds anything under Local Help when I do searches via the "Search" tab (visible at the top of the content pane). I'm fairly confident that the problem started when I installed SQL Server 2005 Integration Services locally. I installed nothing else from, including SQL Server Books Online. All of the SQL Server docs had alre ...Show All
DennisR serviceType information
Why is the serviceType specified to the WCF infrastructure in two places a) ServiceHost creation - constructor parameter b) An attribute of the service element in the config Am i missing something very basic here -Sendhil Hello Jin, That is true. But the declarative vs imperative is an either or case. May be the question wasn't clear. The question is why is it mandatory to specify the serviceType as a constru ...Show All
splyf Additional lambda expressions support
1- An easier syntax to combine functions: Given: int [] numbers = {0, 1, 2, 3, 4}; Func< int , bool > isOdd = i => i % 2 != 0; Func< int , bool > isZero = i => i == 0; Instead of having: Func< int , bool > isZeroOrOdd = i => isZero(i) || isOdd(i); We could have: Func< int , bool > isZeroOrOdd = isZero || isOdd; 2- Same thing but with expressions: Given: Expressio ...Show All
Gilles Noël JavaScript Editor
Is there any plug-ins for Visual Studio that can give me intellisense for my custom objects With all the AJAX stuff that would really be nice. Maybe even automatically identify or fix cross implementation errors. A quick scan shows http://blog.davidyack.com/archive/2006/01/03/3858.aspx http://blogs.msdn.com/astebner/archive/2005/12/07/501466.aspx Note, this forum is really for asking programming questions and not for generic ...Show All
Tom Kaminski Sparkle Interactive Designer (on Windows XP)
I am trying to install Sparkle onto my laptop, it is xp (sp2) iwth Office 2007 beta 2, VS2005 and the various .net frameworks and betas including WinFX Runtime Components Beta 2. Everytime I try to install the error asks for me to install "windows presentation foundation 6.0.5295.60113". I am puzzled as I had no problems with Graphic Designer or Web Designer and all 3 betas will install fine onto my desktop Can anyone pin ...Show All
