简体   繁体   中英

C# Crystal Report Excel Export Formatting issue

I've a crystal report which have two sections. ie summary and details section.

When I export the report in excel via code below:

ReportExporter.FormatType = CrystalDecisions.Shared.ExportFormatType.Excel;

The formatting of the report is not correct. ie the detail section is not aligned to detail heading the cells are merged incorrectly instead.

Could anyone please help me whether there is anyway to fix this issue? ie render the detail on separate sheet or preserver the formatting etc?

Try using ExportFormatType.ExcelRecord instead. It will layout the report according to the cells in the spreadsheet. You lose a little of the formatting though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM