資源簡介
libXL 3.6.5.0 For Windows 64位版 最新完美破解,用libxl-3.6.5.0\Crack\libxl.dll即可無限制地使用本程序庫了。 libXL 能直接讀寫Excel文件而不依賴于是否安裝Microsoft Office。
代碼片段和文件信息
#include?
#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(“\nFile?custom.xls?has?been?created.\n“);
????????xlBookRelease(book);
????}
????printf(“\nPress?any?key?to?exit...“);
????_getch();
????return?0;
}
- 上一篇:dnspy反編譯工具
- 下一篇:程序員面試金典文字版-帶目錄第5版
評論
共有 條評論