Frage

In our application we are having different grids in a form having individual Export to Excel functionality. DevExpress do not provide the functionality to Export multiple grids into an Excel worksheet. How this can be done in Delphi 2007?

Thanks!

War es hilfreich?

Lösung

https://stackoverflow.com/search?q=%5Bdelphi%5D+export+excel

You can start with either of those approaches and make your export routines. 1st of all you would have to decide whether you would place your different grids onto different sheets within the workbook, or into different files, or left to right in the same worksheet.

Maybe most lazy approach would be to export them to different worksheets, and after that using Excel's COM server (via Delphi TExcelApplication component) to move those sheets into one main workbook, and then close and delete all the temporary and now empty workbooks. This would be quite non-effective approach, but might appear most easy if you already mastered built-in DevEx exporter.

Otherwise those links above have a lot of references to purchase some exporter or create one.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top