Click to See Complete Forum and Search --> : Charts
Pedro Governo
Jun 24th, 2002, 11:08 AM
Hi
If i want to add charts to my app in VB.Net which control or facilitie i could use ?
pgrimes
Jun 24th, 2002, 11:24 AM
I've had no luck with vb chart controls... I recommend using excel to generate charts (record a macro and convert the code into your vb project). I am currently working on an asp .net app that creates SVG charts (this seems to be the way to go, better than excel).
Here is a quick tutorial on creating svg charts:
http://www.hendersonpetrophysics.com/SVG_Main.html
Use vb to write the SVG code to a text file. Name the file "***.svg".
Hope this helps.
Paul
Musician
Jun 24th, 2002, 02:04 PM
I'd be more inclined to use GDI+. Read up on it and I'm sure you'll like it. Heres an article on creating pie charts in asp.net pages. With asp.net you need to save bitmaps you create and then put them into your asp.net page the usual way but using similar techniques you can do the same in a vb.net app and just paint it on the form, no need to save it:-
http://msdn.microsoft.com/msdnmag/issues/02/02/ASPDraw/ASPDraw.asp
To avoid confusion I should say that GDI+ is part of the .net framework, the System.Drawing namespace, and not some 3rd party component.
BryanJ
Jun 24th, 2002, 04:19 PM
I would assume that MS wanted the designer to use Crystal Reports 8.5 , included in the package, to generate these charts.
jkw119
Jun 25th, 2002, 10:09 AM
There is ChartFX.net lite that is amazing.... Don't use excel, because, with FX.net, you can simply put it on a form, like an OLE in VB 6.0. I am extremely impressed with ChartFX.net lite. there is a full version, which cost $2000 dollars. you can save, print, and do other things, but that is almost the cost of VS.net, so i don't know what they are smoking over there. anyway, i am currently trying to figure out how to save a screen shot of a form, so i can then load the chart as a picture into an html document and print it myself. (since vb.net got rid of the form.printform) probably so chartfx.net and similar side companies can make some quick money. anyway, the site is at
http://www.softwarefx.com
and this is what the code looks like...
ChartForm.Chart1.ClearData(COD.Values)
ChartForm.Chart1.Title(0).Text = "Sample Chart"
ChartForm.Chart1.OpenData(COD.Values, 1, 3)
ChartForm.Chart1.Value(1, 0) = 5
ChartForm.Chart1.Value(1, 1 = 6
ChartForm.Chart1.Value(1, 2) = 7
ChartForm.Chart1.CloseData(COD.Values)
it is pretty simple
jeff
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.