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

crystal reports exporting to excel more than 65000 lines

When i export 85000 lines from sqlserver to excel....crystal creates two worksheet , but my client want all data at just one

there's any configuration to do this ??

string directory = server.MapPath("~/Temp") + "/" + idUser;

string directoryArq = server.MapPath("~/Relatorios/") + rel;

ReportDocument cryRpt;

cryRpt = new ReportDocument();


IDataReader rs = new DLLPadrao.Factory().GetDataReader("select xxxxxx");


cryRpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.ExcelWorkbook, response2, true, "relatorio");

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 25, 2016 at 05:10 PM

    You will need to upgrade to CR 2011 or later and export to "Microsoft Excel Workbook Data - only". This will export to xlsx format which has over a million row limit.

    - Ludek

    Senior Support Engineer Product Support, Global Support Center Canada

    Chat with SAP Support! See KBA 2213344 - Starting a chat with SAP Support [video]

    Follow me on Twitter

    Got Enhancement ideas? Use the SAP Idea Place

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2016 at 04:35 AM

    You could handle the resulting file in your code to merge the multiple tabs.

    Alternatively, one of the tools listed at Crystal Reports Viewers, Schedulers and Related Products can take care of that step. You can call that tool from within your application via a command line API and it would take care of the exporting and merging.

    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.