on 07-24-2016 3:13 AM
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");
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.