display charts using asp.net - c#

I have developed a GUI using ASP.NET 3.5 and C#....
Now at some places i need to display the data using graphs like pie or bar...
I need to know how to start to do this...As in i was going through Crystal Reports, the there was something about MS charts...i need to know where can i read the tutorial and then implement it in my GUI...
I also like to know the Licence type.. i am looking for something that is free to try and distribute..
Thanks

MS charts, yes. They're free
And ScottGu introduces them here (with links to documentation)

ZedGraph (http://zedgraph.org/wiki/index.php?title=Main_Page) is another one - with sourcecode.
I'm using it in many Projects.

I can really recommend going for a third party library like Infragistics or Dundas. They are not that expensive and give you much richer functionality.

Related

How do you display visio diagram in asp.net

I want to know if there is a free alternative to display Visio diagram (.vds file) in webforms asp.net C#?
Thanks in advance.
To my knowledge, the only way to go is using ActiveX, but if you decide to go down that path, do know that it's supported only by Internet Explorer, and since that one is going to the grave rather quickly I'd say you'll give yourself some headache quite quickly.
There's no pure HTML5/ASP.NET WebForms solutions for this as per today.

Automatically convert a MindMap to another app (e.g. MS Project)

Here is the situation:
We ran a brainstorming session to find all the tasks we will have to achieve for our project
Now, I want to create a Gantt Planning (for instance) with all these tasks
We already built a MindMap with Xmind (I sometimes use Freemind too, or I could also export the Xmind to a Freemind format).
I would like to create a Gantt Planning in Microsoft Project (this is what we mainly use here).
My questions are:
Has anyone of you ever tried to automate the creation of a Gantt from the MindMap (using each level of the MindMap as Title and each leaf as Tasks)?
Would it be possible with VBA? Or C#? I didn't find much API to Xmind of Freemind, did I miss something?
If you can convert your mind map to Freemind, there is some documentation on the Freemind site which provides a couple of approaches to reformatting the Freemind file as an XML file which MS Project can read.
I maintain MPXJ, a library which can be used to read and write file formats which MS Project works with. I felt sure that someone had already written an add-on for Freemind which allowed you to export mind maps as a project plan using MPXJ... however I can't find a reference to it any more! If you don't mind a bit of coding (in Java, or any of the .Net languages) it wouldn't be too hard to achieve what you want using MPXJ.
Jon
We're doing exactly that with STOIC.

Editing Microsoft Word Documents Programmatically

I want to know if this could be done.
I am building a data dictionary for our software system (school project), and I'm thinking of an automated way to do this. Basically I don't use much of Microsoft Word (2007), I only use it in documenting schools stuff, etc. I want to know if its possible to create/edit a Word document programmatically from a template.
The idea is, I will create a page on Word that contains an empty form that will be repeated on every page. For every data that I will input to my program, it will update the corresponding field in the form and skips to the next form.
The purpose of this, is to eliminate copy-paste methods (my habit) and to speed things up when doing the documentation.
Word automation, as suggested by others, will lead you to a world of hurt for two major reasons:
Office is not intended to be run unattended, so it can pop up message boxes at any time, and
It is (probably) not licensed to enable office functionality for computers which don't have it. If you generate a Word document on a web site using automation, you have to make sure that this functionality cannot be reached by computers which don't have office installed (unless they changed this rule in the last years).
I have used Aspose.Words, it costs a little, but it works well and is intended for this.
Not exactly sure what you really want, but creating word documents with c# shouldn't be any problem:
http://support.microsoft.com/kb/316384
If i find out your purpose correctly you need to visit this microsoft msdn link
Manipulating Word 2007 Files with OpenXML
Definitely possible. A fairly easy way of doing it using Office Automation. See this KB article for a basic sample: How to automate Microsoft Word to create a new document by using Visual C#
I think the main difference to that sample will be that you'll open your template and do SaveAs instead of creating a new document, but I can't remember exactly.
However, depending on your exact requirements, there might be better alternatives. For example, it's not recommended to do Office Automation on servers (including on webservers), so if that's needed you might want to look at something else.
You can use com interop of .net framework.
Understanding the Word Object Model from a .NET Developer's Perspective
Building COM Objects in C#
Using COM programming is not the best way as mentioned by erikkallen, I suggest using OPEN XML. It is really easy to use and your document generation operation will be very fast.
http://blog.goyello.com/2009/08/21/how-to-generate-open-xml-file-in-c-in-4-minutes/
http://msdn.microsoft.com/en-us/library/aa338205(v=office.12).aspx

Adding a tool bar to a web page

I want to add a tool bar (just like the one above the text area where we type our questions in this forum , with bold,italic etc) to a web page.Is there an easier way of doing this?I am using ASP.Net c# and VS2008.
Thankx in advance.
Here is one of the well known ones.
http://ckeditor.com/
There are a bunch. The "most famous" is tinyMCE, but there is also CKEditor. If you need an highly customizable solution, you could also try Wysihat.
there is so many WYSWING editor (open source and commercial) In most of my cases CKEditor was the best option . it is opensource and fully customizable

Generate dynamic flow-chart

We are looking for some code/component that can create a flow-chart (image) dynamically, preferably in .NET/C# (although a Silverlight/Flash-component that takes a XML/JSON-feed will also be fine).
For example we have a (business) quote that goes through te following steps before it becomes final:
Requested -> Pending -> Ready for revision -> Under revision -> Final
And as an extra step there is the possibility to go from 'Under revision' back to 'Pending'.
So the component/code should draw something like this (where 'Under revision' would be the active status for this quote):
Example chart http://www.wowtah.nl/flowchart-example.gif
The reason that we are not just creating static GIF-images (and load the correct one on demand) is that these steps can vary per customer implementation of our product. So we're looking for a way of dynamically show the user the workflow steps that are configured for them.
Any help would be greatly appreciated!
Take a look at Microsoft MSAGL
I built a workflow solution a while back and evaluated a number of diagramming controls, including the MindFusion control. I settled on the Syncfusion diagram control, primarily for its ease of use for an end user (especially when drawing connections).
I'm using the WPF edition, but they make editions for ASP.Net and WinForms. It has methods for exporting to images.
These are some of the components that I can remember evaluating; I'd recommend giving them a shot and seeing which you like best.
Syncfusion,
NWoods,
yWorks,
Nevron,
EasyDiagram
MindFusion looks like they have some good diagramming controls that may work for you:
http://www.mindfusion.eu/diagramming.html
In the meantime there are also open source diagramming libraries that you can find on Codeplex and Google code.
A very deep one with many features and very flexible is
http://nshape.codeplex.com/
Perhaps easier to program but more limited in scope
http://www.dalssoft.com/diagram/

Categories