Results 1 to 5 of 5

Thread: Charts

  1. #1
    Pedro Governo
    Guest

    Charts

    Hi

    If i want to add charts to my app in VB.Net which control or facilitie i could use ?

  2. #2
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    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

  3. #3
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    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/is...aw/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.

  4. #4
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251
    I would assume that MS wanted the designer to use Crystal Reports 8.5 , included in the package, to generate these charts.

  5. #5
    Registered User jkw119's Avatar
    Join Date
    Oct 2001
    Location
    Pittsburgh
    Posts
    256

    CHARTS!

    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...

    VB Code:
    1. ChartForm.Chart1.ClearData(COD.Values)
    2. ChartForm.Chart1.Title(0).Text = "Sample Chart"
    3. ChartForm.Chart1.OpenData(COD.Values, 1, 3)
    4. ChartForm.Chart1.Value(1, 0) = 5
    5. ChartForm.Chart1.Value(1, 1 = 6
    6. ChartForm.Chart1.Value(1, 2) = 7
    7. ChartForm.Chart1.CloseData(COD.Values)

    it is pretty simple

    jeff
    Last edited by jkw119; Jun 25th, 2002 at 10:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width