problems exporting to excel files

hi, I am having some problms when i try exporting reports done with fastreport to excel files. If the reports has 20 pages o more, for example, it only exports 5 pages. Why did it happens?? If i try to export only the last page (page 20) it says me that the index is out of bound or something like that.
The code to export the reports are these:

rpCobrOperat.ShowReport;
rpCobrOperat.Export(archExcelXML);

Please help me....thank you

Comments

  • edited 9:37PM
    Try that code:

    if rpCobrOperat.PrepareReport() then
    rpCobrOperat.Export(archExcelXML);

Leave a Comment