本文介绍了Crystal报告以excel包装和合并的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我正在使用此代码。
Hi
I am using this code.
ReportClass report = ConfiguringCrysReports();
ExportOptions exportOpts = new ExportOptions();
ExcelFormatOptions excelFormatOpts = new ExcelFormatOptions(); DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions();
exportOpts = report.ExportOptions;
// Set the excel format options.
//excelFormatOpts.ExcelUseConstantColumnWidth = true;
exportOpts.ExportFormatType = ExportFormatType.Excel;
exportOpts.FormatOptions = excelFormatOpts;
// Set the disk file options and export.
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile; diskOpts.DiskFileName = "D:\\RnD\\abc.xls";
exportOpts.DestinationOptions = diskOpts; report.Export();
但是excel中的文本是包装和合并列单元格。我要求不合并列单元格。欢迎任何建议/帮助。
But the text in excel is wrapping and merging column cells. I require not to merge column cells. Any suggestion / help is welcome.
推荐答案
这篇关于Crystal报告以excel包装和合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!