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 2:58AM
    Try that code:

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

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.