Results 1 to 2 of 2

Thread: Active Reports

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    69

    Active Reports

    Have anyone ever used Data Dynamics' Active Reports to create PDF documents dynamically? I want to create a document containing a logo (jpg image) on the first page and some text on the second page. Can anyone help me?

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    about loading the picture, haven't the foggiest, but exporting:
    VB Code:
    1. Private Sub Active_ReportEnd()
    2.     Me.Toolbar.Tools(14).Enabled = True
    3. End Sub
    4.  
    5. Private Sub Active_ReportStart()
    6.     Me.Toolbar.Tools.Add "PDF Export"
    7.     'the indexes 0 to 13 are used by the default tools, so anything u add will start from index 14
    8.     Me.Toolbar.Tools(14).Enabled = False
    9. End Sub
    10.  
    11. Private Sub ActiveReport_ToolbarClilck(ByVal tool As DDActiveReports.DDTool)
    12.     If tool.Caption = "PDF Export" Then
    13.         Dim objPDFFile As ActiveReportsPDFExport.ARExportPDF
    14.         Set objPDFFile = New ActiveReportsPDFExport.ARExportPDF
    15.  
    16.         With CommonDialog1
    17.             .Filter = "Acrobat (*.pdf)|*.pdf"
    18.             .FileName = ""
    19.             .ShowSave
    20.  
    21.             If .FileName = "" Then Exit Sub
    22.             objPDFFile.FileName = .FileName
    23.             objPDFFile.Export Me.Pages
    24.          End With
    25.     End If
    26. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width