The following code adds two horizontal lines to a document. The
first is blue and the second is green.
[C#]
Doc theDoc = new
Doc(); theDoc.Width = 24; theDoc.Color.String = "0 0
255"; theDoc.AddLine(-50, 100, 999, 100); theDoc.Color.String
= "0 255 0"; theDoc.AddLine(-50, 400, 999,
400); theDoc.Save(Server.MapPath("docaddline.pdf")); theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc =
New Doc() theDoc.Width = 24 theDoc.Color.String = "0 0
255" theDoc.AddLine(-50, 100, 999, 100) theDoc.Color.String =
"0 255 0" theDoc.AddLine(-50, 400, 999,
400) theDoc.Save(Server.MapPath("docaddline.pdf")) theDoc.Clear()
docaddline.pdf
|
|
|