I am trying to export to pdf from crystal reports programmically. I am using this command:
crrep.PrintOutEx False, 1, False, 1, 13, "c:\pdf.pdf"
it exports but when i try to open the pdf file it says:
Acrobat could not open pdf.pdf because it is either not a supported file type or because the file has been corrupted.
When i export it through the crviewer , non programmically, it opens fine. What am i doing wrong?
crrep.PrintOutEx False, 1, False, 1, 13, "c:\pdf.pdf"
it exports but when i try to open the pdf file it says:
Acrobat could not open pdf.pdf because it is either not a supported file type or because the file has been corrupted.
When i export it through the crviewer , non programmically, it opens fine. What am i doing wrong?