Skip to Content
author's profile photo Former Member
Former Member

Export to CSV from CR2008

We have CR 2008 installed I have built a report and am displaying it through a application using a crystal reports viewer control (v 12.0.2000.0 control)

When we run the report, the option to export to CSV is not available. When I am in the report designer it is there, but not when I use the .net control. We are using VS 2008.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 20, 2014 at 02:42 PM

    Hi Chris,

    Known limitation, the standard Viewer export types are:

    ( PS - XML may be an option with manual work around )

    If you want the others you have to create your own custom Export button and do the coding required for options and features. You can turn off the Viewers Export button and handle them all or just the missing ones.

    This is done to match what the BOE 3.1 system allows.

    In CR for VS 2010/2012/( soon to be 2013 ) you can enable all or none of the export types in code from our Export Button:

    // set up the format export types:

    int myExOpts = (int)(

    CrystalDecisions.Shared.ViewerExportFormats.RptFormat |

    CrystalDecisions.Shared.ViewerExportFormats.PdfFormat |

    CrystalDecisions.Shared.ViewerExportFormats.RptrFormat |

    CrystalDecisions.Shared.ViewerExportFormats.XLSXFormat |

    CrystalDecisions.Shared.ViewerExportFormats.CsvFormat |

    CrystalDecisions.Shared.ViewerExportFormats.EditableRtfFormat |

    CrystalDecisions.Shared.ViewerExportFormats.ExcelRecordFormat |

    CrystalDecisions.Shared.ViewerExportFormats.RtfFormat |

    CrystalDecisions.Shared.ViewerExportFormats.WordFormat |

    CrystalDecisions.Shared.ViewerExportFormats.XmlFormat |

    CrystalDecisions.Shared.ViewerExportFormats.ExcelFormat |


    //CrystalDecisions.Shared.ViewerExportFormats.NoFormat); // no exports allowed

    //int myExOpts = (int)(CrystalDecisions.Shared.ViewerExportFormats.AllFormats); // All

    crystalReportViewer1.AllowedExportFormats = myExOpts;



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.