VB.NET Code Sample
<%@ Assembly name="ABCpdf, Version=6.1.0.7, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169" %> |
<%@ import Namespace="WebSupergoo.ABCpdf6" %> |
|
<script runat="server" Language="VB"> |
|
Sub page_load() |
|
Dim theDoc As Doc = New Doc() |
theDoc.FontSize = 96 |
theDoc.AddText("Hello World") |
theDoc.Save(Server.MapPath("simple.pdf")) |
theDoc.Clear() |
|
End Sub |
|
</script> |
|
|
|
C# Code Sample
<%@ Assembly name="ABCpdf, Version=6.1.0.7, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169" %> |
<%@ import Namespace="WebSupergoo.ABCpdf6" %> |
|
<script runat="server" Language="C#"> |
|
void Page_Load(object sender, System.EventArgs e) |
{ |
Doc theDoc = new Doc(); |
theDoc.FontSize = 96; |
theDoc.AddText("Hello World"); |
theDoc.Save(Server.MapPath("simple.pdf")); |
theDoc.Clear(); |
} |
|
</script> |
|
Article ID: 313, Created: 4/24/2009 at 9:57 AM, Modified: 4/25/2009 at 10:47 AM