資源簡介
libxl 內含注冊機 親測linux可用 完全破解 導出excel xls xlsx 毫無壓力。LibXL是一個可以讀寫Excel文件的庫,易用而且功能強大,不需要Microsoft Excel和.NET框架。
代碼片段和文件信息
#include?
#include?“libxl.h“
int?main()
{
????BookHandle?book?=?xlCreateBook();
????if(book)?
????{
????????int?i?f[6];
????????FormatHandle?format[6];
????????SheetHandle?sheet;
????????f[0]?=?xlBookAddCustomNumFormat(book?“0.0“);
????????f[1]?=?xlBookAddCustomNumFormat(book?“0.00“);
????????f[2]?=?xlBookAddCustomNumFormat(book?“0.000“);
????????f[3]?=?xlBookAddCustomNumFormat(book?“0.0000“);
????????f[4]?=?xlBookAddCustomNumFormat(book?“####.00?$“);
????????f[5]?=?xlBookAddCustomNumFormat(book?“####.00?$[Black][<1000];####.00?$[Red][>=1000]“);
????????for(i?=?0;?i?6;?++i)?{
????????????format[i]?=?xlBookAddFormat(book?0);
????????????xlFormatSetNumFormat(format[i]?f[i]);
????????}
????????sheet?=?xlBookAddSheet(book?“Custom?formats“?0);
????????if(sheet)?
????????{
????????????xlSheetSetCol(sheet?0?0?20?0?0);
????????????xlSheetWriteNum(sheet?2?0?25.718?format[0]);
????????????xlSheetWriteNum(sheet?3?0?25.718?format[1]);
????????????xlSheetWriteNum(sheet?4?0?25.718?format[2]);
????????????xlSheetWriteNum(sheet?5?0?25.718?format[3]);
????????????xlSheetWriteNum(sheet?7?0?1800.5?format[4]);
????????????xlSheetWriteNum(sheet?9?0?500?format[5]);
????????????xlSheetWriteNum(sheet?10?0?1600?format[5]);????????????
????????}
????????if(xlBookSave(book?“custom.xls“))?printf(“File?custom.xls?has?been?created.\n“);
????????xlBookRelease(book);
????}
????return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-10-30?10:18??libXL\
?????目錄???????????0??2017-10-30?10:18??libXL\Linux\
?????文件???????34514??2016-11-27?22:48??libXL\Linux\changelog.txt
?????目錄???????????0??2017-10-30?10:18??libXL\Linux\doc\
?????文件????????4645??2016-11-27?22:48??libXL\Linux\doc\autoFilter.html
?????文件????????6653??2016-11-27?22:48??libXL\Linux\doc\colors.html
?????文件???????10129??2016-11-27?22:48??libXL\Linux\doc\custom-format.html
?????文件????????7023??2016-11-27?22:48??libXL\Linux\doc\filterColumn.html
?????文件????????7270??2016-11-27?22:48??libXL\Linux\doc\font.html
?????文件???????32216??2016-11-27?22:48??libXL\Linux\doc\format.html
?????目錄???????????0??2017-10-30?10:18??libXL\Linux\doc\images\
?????文件????????1099??2016-11-27?22:48??libXL\Linux\doc\images\alignh_center.png
?????文件????????1739??2016-11-27?22:48??libXL\Linux\doc\images\alignh_distributed.png
?????文件?????????980??2016-11-27?22:48??libXL\Linux\doc\images\alignh_fill.png
?????文件????????1093??2016-11-27?22:48??libXL\Linux\doc\images\alignh_general.png
?????文件????????1567??2016-11-27?22:48??libXL\Linux\doc\images\alignh_justify.png
?????文件?????????959??2016-11-27?22:48??libXL\Linux\doc\images\alignh_left.png
?????文件????????1586??2016-11-27?22:48??libXL\Linux\doc\images\alignh_merge.png
?????文件????????1021??2016-11-27?22:48??libXL\Linux\doc\images\alignh_right.png
?????文件????????1131??2016-11-27?22:48??libXL\Linux\doc\images\alignv_bottom.png
?????文件????????1116??2016-11-27?22:48??libXL\Linux\doc\images\alignv_center.png
?????文件????????1790??2016-11-27?22:48??libXL\Linux\doc\images\alignv_distributed.png
?????文件????????1583??2016-11-27?22:48??libXL\Linux\doc\images\alignv_justify.png
?????文件????????1112??2016-11-27?22:48??libXL\Linux\doc\images\alignv_top.png
?????文件?????????923??2016-11-27?22:48??libXL\Linux\doc\images\borderdiagonal_both.png
?????文件?????????837??2016-11-27?22:48??libXL\Linux\doc\images\borderdiagonal_down.png
?????文件?????????801??2016-11-27?22:48??libXL\Linux\doc\images\borderdiagonal_none.png
?????文件?????????816??2016-11-27?22:48??libXL\Linux\doc\images\borderdiagonal_up.png
?????文件?????????891??2016-11-27?22:48??libXL\Linux\doc\images\borderst
?????文件?????????933??2016-11-27?22:48??libXL\Linux\doc\images\borderst
?????文件?????????894??2016-11-27?22:48??libXL\Linux\doc\images\borderst
............此處省略124個文件信息
評論
共有 條評論