Open source component or unit for exporting Delphi TDataSet to native XLS without Excel installed [closed]

时光怂恿深爱的人放手 提交于 2019-12-03 16:27:31

问题


Do you possibly know about the existence of a free and open sourced Delphi code to export TDataSet to native XLS format? The question was previously asked here, yet I am looking for a free solution.

As observed in for example TeeChart.TeeStore.TSeriesDataXLS.SaveToStream writing a native XLS export function is not a rocket science, yet I struggle to find an existing solution, which would definitely save some time and money (for commercial component which would be used in 10-20%).

It would be beneficial if such export code would allow color and text style changes, but for me personally it is not crucial.


回答1:


I have used the components mxExport from Max. It's free and with source code avaible. The page it's now offline (http://www.maxcomponents.net/) but you can find the components in other places:

  • Torry
  • FTP ClubDelphi (all components libraries of Max)
  • ...

Check components: mxExports and mxNativeExcel.

Regards.




回答2:


oExport - XLSX/ODS native Delphi import/export library

  • no external dll libraries are required
  • no dependency on Excel or Calc installation (no OLE)
  • full unicode support even for D7, D2007
  • supported cell types: string, number, percent, formula, time, date, datetime
  • cell formatting: cell width+height, horizontal+vertical alignment, wrap text, font, background color, borders
  • col/row span
  • tested and working under Delphi 2007 and XE2 32bit+64bit: should be compatible with all D7 to XE2
  • NEW OFiller: fill DOCX (Word 2007), ODT (OpenOffice Writer), XLSX (Excel 2007), ODS (OpenOffice Calc) templates

http://www.kluug.at/xlsx-ods-delphi.php

licensed under a MPL/GPL/LGPL tri-license Version: MPL 1.1/GPL 2.0/LGPL 2.1

----update i think it's commercial now :(




回答3:


give smExport a try. Not free, but reasonably priced with 35€ / 50 € (without/ with source). They also have a trial version (limited by the number of rows you can export). In addition it supports exports into lots of other formats.



来源:https://stackoverflow.com/questions/3457472/open-source-component-or-unit-for-exporting-delphi-tdataset-to-native-xls-withou

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!