theemperor
Programmer
Hi all! Can anybody tell me how to react to events in VB6? My concrete proble is as follows: I try to convert a .ps-file into a .pdf-file using an object called ACRODISTXLib.PdfDistiller (Acrobat Distiller). It has got a function called FileToPDF which fires an event called OnJobDone if succeeded. Here is a code-snipplet:
Sub convertToPDF()
Dim oDist As ACRODISTXLib.PdfDistiller
Dim nRet as Integer, sFileIn as String, sFileOut as String
sFileIn = "C:\sampler.ps"
sFileOut = "C:\sampler.pdf"
Set oDist = New ACRODISTXLib.PdfDistiller
nRet = oDist.FileToPDF(sFileIn, sFileOut, ""
'nRet returns 1 upon success
End Sub
Thanx for the help, Robert
Sub convertToPDF()
Dim oDist As ACRODISTXLib.PdfDistiller
Dim nRet as Integer, sFileIn as String, sFileOut as String
sFileIn = "C:\sampler.ps"
sFileOut = "C:\sampler.pdf"
Set oDist = New ACRODISTXLib.PdfDistiller
nRet = oDist.FileToPDF(sFileIn, sFileOut, ""
'nRet returns 1 upon success
End Sub
Thanx for the help, Robert