|
The following code adds two pie slices to a document.
[C#]
Doc theDoc = new Doc();
theDoc.Width = 80;
theDoc.Rect.Inset(50, 50);
theDoc.Color.String = "255 0 0";
theDoc.AddPie(0, 90, true);
theDoc.Color.String = "0 255 0";
theDoc.AddPie(180, 270, false);
theDoc.Save(Server.MapPath("docaddpie.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.Width = 80
theDoc.Rect.Inset(50, 50)
theDoc.Color.String = "255 0 0"
theDoc.AddPie(0, 90, True)
theDoc.Color.String = "0 255 0"
theDoc.AddPie(180, 270, False)
theDoc.Save(Server.MapPath("docaddpie.pdf"))
theDoc.Clear()

docaddpie.pdf
|
|
|