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
    
    objReport.DrawToASP
    
    Set objReport = Nothing
    %>
     

Latest Blog Posts

DynamicBarcode Creator for .NET v2.0 Release

DynamicBarcode Creator v2.0 for .NET BETA Release

DynamicPDF PrintManager for .NET Version v3.0 Release

DynamicPDF Viewer for .NET Version v2.0 Release

Customer Quotes

Thanks again for all your help, I have to say that your customer service is very useful and quick!

-- Dave Decicco, Turnpike Global Technologies

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