>Hi,
>
>I just got a copy of Crystal Reports v8.5 (after being told that it now supported export to PDF).
>
>If I read the doc right, all I need to do set some properties on the ExportOptions object. I can export to other formats, but these two lines of code fail for the PDF format:
>
>loCrExportOptions.PDFExportAllPages = .T. && Err: unknown name
>
>** Set to PDF format
>loCrExportOptions.FormatType = 31 && Err: invalid enum value
>
>Can anyone shed any light on what's wrong. Has anyone worked with CR8.5 and got reports going to PDF's?
>
>
>Thanks,
>Guy
Hi Guy,
I have used CR8 through Info 7.5, and directly exported it to PDF without a problem. However, that was not through code, but through CR8's designer. From your error messages I believe that you could try ;
loCrExportOptions.PDFExportAllPages = 1
loCrExportOptions.FormatType = 1F
That's a complete shot in the dark!
Cheers
Sanjay Kapoor
Relatively speaking is a conversation with Einstein