Sample Code for ASPPDF.NET

                                                        
1
2
3 <%@ Assembly name="ABCpdf, Version=5.0.0.6, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169" %>
4 <!--- The above line can be omitted, if you load the assembly in the application web.config file. See KB article 10239 for details -->
5 <%@ import Namespace="WebSupergoo.ABCpdf5" %>
6
7
8 <script runat="server" Language="VB">
9
10
11 Sub page_load()
12
13 Dim theID As Integer = 0
14 Dim theText As String = "This PDF file is generated by WebSupergoo ABCpdf.NET on the fly"
15
16 Dim theDoc As Doc = New Doc()
17 theDoc.Width = 4
18 theDoc.FontSize = 32
19 theDoc.Rect.Inset(20, 20)
20
21
22 theDoc.FrameRect()
23 theID = theDoc.AddHTML(theText)
24 While theDoc.GetInfo(theID, "Truncated") = "1"
25 theDoc.Page = theDoc.AddPage()
26 theDoc.FrameRect()
27 theID = theDoc.AddHTML("", theID)
28 End While
29
30 theDoc.Save(Server.MapPath("textflow.pdf"))
31 theDoc.Clear()
32 response.write ("PDF file written
")
33 response.write ("View PDF File")
34
35 End Sub
36 script>
37
38
  • 55 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

Graphics Server .NET Information

Graphics Server .NET is an ASP.NET charting component that can be used to generate charts from...

Persits ASPJpeg Sample Code

Sample code to resize an image with ASPJpeg 1.6. User will need to customize...

Persits ASPJpeg Information

AspJpeg is a high-quality image thumbnail component that can resize images on-the-fly. Some...

Persits ASPUpload Information

ASPUpload enables an ASP application to capture, save and process files uploaded to the web...

WebSupergoo ABCpdf.NET Information

WebSupergoo ABCpdf.NET is an ASP.NET component that creates PDF files on the fly. WebSupergoo...