Posted 14 September 2017, 7:05 pm EST
[activereports_archive]I have the following Problem with AR 7.3.7973.0
I export rdlx Reports as Excel programmatically.
When I use this:
[csharp]var xlsExport = new XlsExport();
xlsExport.PageSettings.PaperSize = GrapeCity.ActiveReports.Export.Excel.Section.PaperSizes.A4;
// Set a file format of the exported excel file to Xlsx to support Microsoft Excel 2007 and newer versions.
xlsExport.FileFormat = FileFormat.Xls97Plus;
xlsExport.UseCellMerging = true;[/csharp]
Unfortunatily with this code the Data is being truncated in the exported cells (invisible data is cut off).
I could solve this using this export code:
[csharp] ExcelTransformationDevice renderingExtension = new ExcelTransformationDevice();
MemoryStreamProvider provider = new MemoryStreamProvider();
Settings settings = new Settings();
document.Render(renderingExtension, provider, settings);[/csharp]
But now exporting of Fixed Layout Reports doesnt work anymore. All I get is the excel document you find in the attachment.
I am somewhat stuck, because either version seems buggy.
Any help appreciated![/activereports_archive]
2015/12/Report-3.xls