Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

How to draw graphs in asp.net

Last post 05-24-2006, 9:19 AM by carlcamera. 3 replies.
Sort Posts: Previous Next
  •  05-17-2006, 9:28 AM 17883

    How to draw graphs in asp.net

    Plz Give code to draw graph in asp.net
  •  05-17-2006, 11:11 AM 17886 in reply to 17883

    Re: How to draw graphs in asp.net

    One Way:

    ArrayList alItemValues = new ArrayList();
    alItemValues.Add("6");
    alItemValues.Add("9");
    alItemValues.Add("3");
    alItemValues.Add("2");
    alItemValues.Add("7");

    ArrayList alItemNames = new ArrayList();
    alItemNames.Add("OH ");
    alItemNames.Add("TX ");
    alItemNames.Add("FL ");
    alItemNames.Add("CA ");
    alItemNames.Add("NY ");

    HttpContext.Current.Response.Write("Horizontal Bar Graph");
    HttpContext.Current.Response.Write("<br>");

    foreach (int i = 0; i<alItemNames.Count; i++)
    {
        HttpContext.Current.Response.Write(alItemNames[i].ToString());
        int itemval = Convert.ToInt32(alItemValues[i].ToString());
        for (int q = 0; q < itemval ; q++)
        {
              HttpContext.Current.Response.Write("*");
         }
              HttpContext.Current.Response.Write("<br>");
    }



    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
  •  05-24-2006, 5:50 AM 18039 in reply to 17886

    How to export the chart to word..

    Hi

    I've created a chart in asp.net and now I would to export the chart to word.

    how to do this?

    regards

    eric

     

  •  05-24-2006, 9:19 AM 18048 in reply to 18039

    Re: How to export the chart to word..

    The best/easiest/most efficient way is by using interfaces provided by the MS Office Primary Interop Assemblies (PIAs).  The PIAs are DLLs that provide the ability to create and manipulate Office documents such as Word and Excel.

    PIA Download Site

    How To install PIAs



    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
View as RSS news feed in XML