print access report into pdf files using VB6

C

cdolphin88

Hi,

I'm trying to convert the access I have written in access into a pdf, I
used this code below, but somehow it gave me an error user defined type
not defined, so I guess it's because I need to add a reference, but
which one? Can someone tell me?

Cheers!

Claudia


Dim objPDF As New PDFClass
With objPDF
.ReportName = "RptCollection"
.OutputFile = "c:\testing.pdf"
.PDFEngine = 1
.PrintImage
End With
 
Top