Excel Export

jeromejerome France
edited 4:24AM in FastReport .NET
Hi!
I've got troubles using the excel export in the code! I'm currently doing this :
Report report = PrepareMyReport();
FastReport.Export.OoXML.OOExportBase export = new FastReport.Export.OoXML.OOExportBase();
if (report != null) {
    if (report.Prepare()) {
        export.SetReport(report);
        export.OpenAfterExport = false;
        export.PageRange = FastReport.PageRange.All;
        export.AllowOpenAfter = true;
        export.OpenAfterExport = true;                            
        MemoryStream ExcelSheet = new MemoryStream();
        report.Export(export, ExcelSheet);                    
    }                                              
}

The report is not null and well prepared.
But nothing appears! I can not use the Excel 2007 Export feature 'cause I need my xls (or xml) files to be read on Excel 2003.
I think something is missing in the parameters of the export, but which ones?
Thanks

Comments

  • edited 4:24AM
    Hello,
    FastReport.Export.Xml.XMLExport export = new FastReport.Export.Xml.XMLExport();
    if (export.ShowDialog())
      report1.Export(export, "result.xml");
    
  • jeromejerome France
    edited 4:24AM
    AlexTZ wrote: »
    Hello,
    FastReport.Export.Xml.XMLExport export = new FastReport.Export.Xml.XMLExport();
    if (export.ShowDialog())
      report1.Export(export, "result.xml");
    

    Thanks, that helped a lot >

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.