@RandomTrains wrote:
I seem to be having a bit of trouble getting the reference to link properly.
I have added as reference pdfCreator.COM.tlb but it doesnt seem to work.
Some people online have said that I should add as a reference the .dll or even the .exe but access prevetns me from adding those as reference.Here is the code I use to test if it is linked properly
Dim oPDFJob As Object
On Error GoTo L_ErrIsPDFCReatorInstalled Set oPDFJob = CreateObject("PDFCreator.clsPDFCreator") IsPDFCreatorInstalled = (Not oPDFJob Is Nothing) On Error GoTo 0
L_ExIsPDFCReatorInstalled:
Set oPDFJob = Nothing
Exit FunctionL_ErrIsPDFCReatorInstalled:
Resume L_ExIsPDFCReatorInstalledEnd Function
Private Sub Détail_Click()
If IsPDFCreatorInstalled = False Then
MsgBox Err.Description, vbDefaultButton1, "Don goofed up"
Else
MsgBox Err.Description, vbDefaultButton1, "ya did good"
End If
End Sub
Posts: 1
Participants: 1