When I export from Crystal Reports, any fields that are marked as Can Grow are merged with an otherwise blank row below them.
This completely messes up my sorting. How can I resolve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suggest another way: choose ExportFormatType.ExcelRecord instead of ExportFormatType.Excel. The xls file will be created without formatting.
If actually the user is exporting report using ReportViewer Toolbar Export button you can:
Or hide Export button from toolbar and put in the page buttons that exports programmatically
CrystalReportSource1.ReportDocument.ExportToHttpResponse(ExportFormatType.ExcelRecord, this.Response , false, "report.xls");reportDocument.ExportToDisk(ExportFormatType.ExcelRecord, "report.xls");You can choose the way that best fits your needs, but you must try if it works with the runtime you use either in development or in release server.
ExportFormatType.ExcelRecord means that is generated an xls file, without formatting. If you set ExportFormatType.Excel fields that are marked as “Can Grow” are merged with an otherwise blank row below them.