|
Quick Navigation |
|
|
 |
|
DynamicPDF™ ReportWriter - Examples
DynamicPDF™ ReportWriter Program Flow Example
The basic program flow for a script using DynamicPDF™ ReportWriter
is as follows:
-
Create a report object.
-
Define the database connection and query.
-
Add report elements (i.e. RecordBox) to the header, section
header, body, section footer and/or footer.
-
Generate (Draw) the PDF report.
ASP Example Script:
<!-- METADATA TYPE="typelib" UUID="{567E47DC-8220-403F-B348-EB9A035648BB}" -->
<%
Dim objReport
Set objReport = Server.CreateObject("DPDF_RptWtr.Report")
With objReport.Command
'An ADO Connection String (Northwind DB in this example)
.ActiveConnection = "File Name = " & Server.MapPath("Northwind.udl")
'A SQL Query
.CommandText = "SELECT CompanyName FROM Customers"
End With
With objReport.Header
.Height = 24
.AddLabel "Header goes here", 0, 0, 504, 12
End With
With objReport.Body
.Height = 12
.AddRecordBox "CompanyName", 0, 0, 504, 12
End With
objReport.DrawToASP
Set objReport = Nothing
%>
|
|
|
| Latest News |
TechEd Orlando 2008
Come by and visit ceTe Software at Booth #1324 at TechEd 2008, June 2-6.
DynamicPDF v5 for .NET Beta
ceTe Software is pleased to announce the Beta release of DynamicPDF v5.0 for .NET. Please click here to download.
|
 |
| Customer Quotes |
|
Many thanks for the very fast response. Your help fixed my problem!
|
|
-- Anthony Fisher, Zortal
|
 |
|