本帖最后由 Lenka.Guo 于 2016-3-21 11:33 编辑
你好,我有个问题需解决下:
报表生成的EXECEL文件如下图:Lifeboat列、Exit time列和Hours列的每个单元格占用了execel的多个竖列。怎么才能让Lifeboat列只占用execel的单个竖列,就像First Name列那样。
下面是生成的代码:
ExcelTransformationDevice RenderingExtension = new ExcelTransformationDevice();
Settings settings = new Settings();
string filePath = exportSaveFileDialog.FileName;
StreamProvider StreamProvider = new FileStreamProvider(new DirectoryInfo(Path.GetDirectoryName(filePath)), Path.GetFileNameWithoutExtension(filePath));
this.arvMain.Render(RenderingExtension, StreamProvider, settings.GetSettings());
|