Copy it to your \exp20\source\dclipx folder and run BUILD19_SL1.BAT or BUILD20.BAT to rebuild DCLIPX.DLL.
This now supports the Microsoft Print to PDF driver as the ACROBAT previewer.
Run this sample program:
Code: Select all
#INCLUDE "dcdialog.CH"
#INCLUDE "dcprint.CH"
FUNCTION Main()
LOCAL oPrinter, i, aOptions
aOptions := { 0, nil, '5', nil, nil, .f., 'Microsoft Print to PDF', 3, nil, .F., .F. }
DC_PrintPreviewAcrobatOpt( aOptions )
DCPRINT ON ACROBAT TO oPrinter ;
IF oPrinter = NIL .OR. !oPrinter:lActive
RETURN .f.
ENDIF
FOR i := 1 TO 50
@ i,10 DCPRINT SAY 'This is line ' + Alltrim(Str(i))
NEXT
DCPRINT OFF
RETURN nil
* ----------
PROC appsys ; RETURN