CreatePDFFile

Creates a new pdf document file.

You must assign a valid file name to ReportFileName before calling this procedure. If ReportFileName empty or not valid, CreatePDFFile will return false. If the file exists, CreatePDFFile will delete it.

Example

Dim cPDF As New vbPDF

cPDF.ReportFileName = "c:\sales.pdf"

If Not cPDF.CreatePDFFile() Then
  Exit Sub
End If