cancel
Showing results for 
Search instead for 
Did you mean: 

crystal reports exporting to excel more than 65000 lines

Former Member
0 Kudos

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();

                cryRpt.Load(directoryArq);

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

                cryRpt.SetDataSource(rs);

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

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

Former Member
0 Kudos

i tried that, but this way i lost the format of report..(this way it's like a csv format). would have another way ?

thanks

valmir

DellSC
Active Contributor
0 Kudos

This row limit is from the version of Excel that you're exporting to - .XLS files had this limit.  .XLSX files don't, but currently SAP only provides a "Data Only" export to .XLSX.  So, there is no way, currently, to export to .XLSX with formatting directly from Crystal.

I have submitted this on IdeaPlace, which is where suggestions for new functionality go.  It's here:  Excel .XLSX Export With Formatting : View Idea.  The current status is "Under Review", but it won't hurt for it to get a few more up-votes.

-Dell

Answers (1)

Answers (1)

ido_millet
Active Contributor
0 Kudos

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.