i have created pie chart in wpf in need to bind data from database to this pie chart from wcf how to write code in the wcf and bind it to this pie chart of wpf.
i'm new to wpf and wcf.
Can any1 help me on this
If you only need to "paint" data from wcf you should expose a WCF service to return an object with these data.
Then it depends on the kind of pie chart you have build... you could build a pie chart that only receives this object and paints it... So you could have a ViewModel with this object and bind you pie chart to it.
Let me now if you need more especific help.
Related
Is it possible to display pie chart data labels outside the pie in the Microsoft .Net chart control, just like SSRS pie chart's series CustomAttributes.PieLabelStyle=Outside does?
I tried to use the below properties to no avail:
Sure it is in .NET you need to set
Chart1.Series["Series1"]["PieLabelStyle"] = "outside"
Hope this answer your question.
Regards,
Ramzy!
I need to create a custom grid like control in Silverlight which shows data, in the following format.
Each Cell will contain the value that represents the intersection. How can I do this with silverlight?
PS: The numbers don't mean real values.
i have a silverlight application.In this i have used service file for DML operations.The methods in Service can be accesed in form page.ie the the XAML page(example Main.XAML)
MY issue is i cant access my DB in the XAML pages as it is in silverlight,i want to create a method in Service file,get some data from MAster tables and fill it in the combo boxes which are there in my first form.
Im trying to use System.Windows.Forms.ComboBox combobox as a control as i cant access the controls of my forms in the service file and then trying to use this control in my form(Main.xaml)then it is showing an error.
Can anyone please let me know how can i populate data this way in combo box.
Rply as early as posible.
You'll need to add an operation to your service that returns a collection of data contracts (for instance a collection of products).
Then call the service from your SL application using an asynchronous call and bind the data to the combo box in the async callback.
There's a working example here.
i am new in reports in vb.net
i use v s 2008.
i want a simple help.
i want a hit or a Source Code or any Reference using that i can easily create a pie chart.
Use the Microsoft Charting Controls.
I have basic WinForm user controls (view) whose intilization includes a presenter and model. The presenter includes calls to a wcf service. Recently an error has croped up that is very trying. Whenever I drag and drop one of these controls onto my design surface I am presented with an error that the endpoint with name "yadda" could not be found.
This same behavior occurs if I try to run the usercontrol test container. If however, I comment out the intialization, add the control to my form, save the form, go to the control and uncomment the intialization, build, and then run my app evrything works fine.
All my controls are in a Presentation project which has a reference to anothe rproject that containts the presenters and the models as well as a servic reference to my wcf service.
I am hoping someone out that encountered similar difficulties and will have some advise.
Thanks
You're configuring the WCF endpoint in your app.config file. When you are using the designer, your code is running inside of Visual Studio, so WCF is looking in Visual Studio's config file and does not find your endpoint.
Do you want to make WCF calls at design time? If you do, you'll need to configure WCF programmatically so that it works without an app.config. Here is a post that shows how to do that: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/82457a59-44f9-4efb-a814-0ed5a1ec0074
If you don't want to make the calls at design time, you can check the DesignMode on your user control, and not create the proxy in your initialization code if it's True. Note that DesignMode isn't set until after your constructor runs, so you'll need to do this work in a Load event handler or an overridden OnLoad.