• In order to export Crystal Reports to PDF you have to write some code in an ActiveX script task. I must say that it's not so simple, since I had to do it myself too. I set up a small utility to perform this task. You can find it attached here.

    The zip contains 3 files:

    RPTExport.dll

    PDFExport.exe

    PDFExport.ini

    To make it work:

    1) register RPTExport.dll (run "regsvr32 RPTExport.dll")

    2) edit PDFExport.ini and set up your connection properties

    3) run PDFExport.exe with appropriate parameters

    SYNTAX:

    --------------------------------

    PDFexport reportFile=file

    exportFile=file

    [selectionFormula=formula]

    [param=paramName;paramValue;{True|False}]

    ...

    [param=paramName;paramValue;{True|False}]

    ARGUMENTS:

    ---------------------------------

    reportFile Path to report (file .rpt)

    exportFile Path to export File

    selectionFormula Selection formula

    param Report parameter

    Usually I don't run binary code from people I don't know, so I won't be surprise if you don't like the idea of running mine. If you want I can provide the full source code (Visual Basic 6).

    Hope this helps

    Gianluca

    -- Gianluca Sartori