ERLEDIGT
NEIN
NEIN
ANTWORTEN
0
0
ZUGRIFFE
671
671
EMPFEHLEN
-
Hallo allerseits,
ich habe im Web einen Sourcecode (C#) "aufgeschnappt", der per ASP.NET OnlineCharts anzeigen soll (Kreisdiagramme). Kann mit jemand sagen, wie ich den SourceCode in ASP.NET kompilieren kann? OWC i.d. Version 11 sind auf dem WebServer installiert...das dazugehörige Assembly sagt mir leider (noch) nicht viel: Ist das ein Zusatz, der auch auf dem WebServer installiert werden muss oder ist es ein Tool, dass ich lokal installieren kann und dann mit dem Kompilieren loslegen kann?
Schonmal danke für die Mühe!
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Creating charts Here is some simple code to create a chart for display in any browser. The example is written in C# but it is fairly easy to port to another language. To compile this example, you will need to import the OWC11 assembly. //First create a ChartSpace object to hold the chart ChartSpace objCSpace = new ChartSpaceClass (); //Add a chart and provide a type ChChart objChart = objCSpace.Charts.Add (0); objChart.Type = ChartChartTypeEnum.chChartTypePie3D; //add chart titles and legend objChart.HasTitle = true; objChart.Title.Caption = "ASP.NET Charts"; objChart.HasLegend = true; objChart.Legend.Border.DashStyle = OWC11.ChartLineDashStyleEnum.chLineDash; objChart.Legend.Position = OWC11.ChartLegendPositionEnum.chLegendPositionRight; //Populate with contrived data string strCategory = "Cars, Trucks, Vans, Big Rigs, Motorcycles, Mopeds"; string strValue = "13,12,31,43,23,15"; //Add a series to the chart's series collection objChart.SeriesCollection.Add(0); //load the category and value data objChart.SeriesCollection[0].SetData (ChartDimensionsEnum.chDimCategories, (int)ChartSpecialDataSourcesEnum.chDataLiteral, strCategory); objChart.SeriesCollection[0].SetData (ChartDimensionsEnum.chDimValues, (int)ChartSpecialDataSourcesEnum.chDataLiteral, strValue); //show the chart on the client Response.ContentType= "image/gif"; Response.BinaryWrite((byte[])objCSpace.GetPicture("gif",500,400)); Response.End();Geändert von FRitter (25.11.05 um 00:27 Uhr)
Ähnliche Themen
-
Kompilierungsproblem mit VS 2010 C++
Von deto im Forum .NET CaféAntworten: 1Letzter Beitrag: 10.11.10, 20:50 -
GTK Kompilierungsproblem
Von dadevelopa im Forum C/C++Antworten: 6Letzter Beitrag: 01.12.05, 15:16 -
Kompilierungsproblem
Von massel im Forum ASPAntworten: 2Letzter Beitrag: 23.04.05, 23:53





Zitieren
Login





