DynamicPDF Dependable Developer Components
Quick Navigation

DynamicPDF™ ReportWriter - Examples

DynamicPDF™ ReportWriter Program Flow Example

The basic program flow for a script using DynamicPDF™ ReportWriter is as follows:

  1. Create a report object.
  2. Define the database connection and query.
  3. Add report elements (i.e. RecordBox) to the header, section header, body, section footer and/or footer.
  4. 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
    Set objReport = Nothing

Latest Blog Posts

DynamicPDF for .NET Core Suite Version 9 BETA Release

DynamicBarcode Creator for .NET v2.0 Release

DynamicBarcode Creator v2.0 for .NET BETA Release

DynamicPDF PrintManager for .NET Version v3.0 Release

Customer Quotes

You just made two nerds extremely happy, thanks so much!

-- Pedro Vera, NetLink Resource Group, Inc.

Site Map |  Contact Us |  Legal Stuff |  EULA Logo © 1997-2017 ceTe Software