Ê×Ò³

Ô´ÂëËѲØÍø

Ê×Ò³ > Ãâ·ÑÔ´Âë > ÆäËûÔ´Âë >

ExcelizeÎĵµÀà¿â v2.6.0

´´½¨Ê±¼ä£º2022-05-04 19:21  ä¯ÀÀ

ExcelizeÎĵµÀà¿â v2.6.0
ExcelizeÎĵµÀà¿â v2.6.0
ÔÝÎÞÑÝʾ Á¢¼´ÏÂÔØ

Excelize ÊÇ Go ÓïÑÔ±àдµÄÓÃÓÚ²Ù×÷ Office Excel Îĵµ»ù´¡¿â£¬»ùÓÚ ECMA-376£¬ISO/IEC 29500 ¹ú¼Ê±ê×¼¡£¿ÉÒÔʹÓÃËüÀ´¶ÁÈ¡¡¢Ð´ÈëÓÉ Microsoft Excel? 2007 ¼°ÒÔÉÏ°æ±¾´´½¨µÄµç×Ó±í¸ñÎĵµ¡£Ö§³Ö XLSX / XLSM / XLTM µÈ¶àÖÖÎĵµ¸ñʽ£¬¸ß¶È¼æÈÝ´øÓÐÑùʽ¡¢Í¼Æ¬(±í)¡¢Í¸ÊÓ±í¡¢ÇÐƬÆ÷µÈ¸´ÔÓ×é¼þµÄÎĵµ£¬²¢ÌṩÁ÷ʽ¶Áд API£¬ÓÃÓÚ´¦Àí°üº¬´ó¹æÄ£Êý¾ÝµÄ¹¤×÷²¾¡£¿ÉÓ¦ÓÃÓÚ¸÷À౨±íƽ̨¡¢ÔƼÆËã¡¢±ßÔµ¼ÆËãµÈϵͳ¡£Ê¹Óñ¾Àà¿âÒªÇóʹÓÃµÄ Go ÓïÑÔΪ 1.10 »ò¸ü¸ß°æ±¾¡£


°²×°£º
go get github.com/360EntSecGroup-Skylar/excelize
Èç¹ûÄúʹÓà Go Modules ¹ÜÀíÈí¼þ°ü£¬ÇëʹÓÃÏÂÃæµÄÃüÁîÀ´°²×°×îа汾¡£
go get github.com/360EntSecGroup-Skylar/excelize/v2


¹¦ÄÜ£º
1¡¢´´½¨ Excel Îĵµ
2¡¢¶ÁÈ¡ Excel Îĵµ
3¡¢ÔÚ Excel ÎĵµÖд´½¨Í¼±í
ʹÓà Excelize Éú³Éͼ±íÊ®·Ö¼òµ¥£¬½öÐ輸ÐдúÂë¡£Äú¿ÉÒÔ¸ù¾Ý¹¤×÷±íÖеÄÒÑÓÐÊý¾Ý¹¹½¨Í¼±í£¬»òÏò¹¤×÷±íÖÐÌí¼ÓÊý¾Ý²¢´´½¨Í¼±í¡£
4¡¢Ïò Excel ÎĵµÖвåÈëͼƬ


¸üÐÂÈÕÖ¾£º
v2.6.0

¼æÈÝÐÔÌáʾ
ÖØÃüÃûµ¼³ö³£Á¿ NameSpaceDublinCoreMetadataIntiative Ϊ NameSpaceDublinCoreMetadataInitiative ÒÔÐÞ¸´Æ´Ð´´íÎó
ÖØÃüÃûµ¼³ö±äÁ¿ ErrUnsupportEncryptMechanism Ϊ ErrUnsupportedEncryptMechanism
ÖØÃüÃûµ¼³ö±äÁ¿ ErrDataValidationFormulaLenth Ϊ ErrDataValidationFormulaLength
ÖØÃüÃûµ¼³ö±äÁ¿ ErrDefinedNameduplicate Ϊ ErrDefinedNameDuplicate
ÒƳýÁ˵¼³ö±äÁ¿ XMLHeaderByte
ÒƳýÁËÉèÖÃÊý¾ÝÊý¾ÝÑéÖ¤ÁÐ±íº¯Êý SetSqrefDropList µÄµÚ¶þ¸öÐβΠisCurrentSheet ºÍÒì³£·µ»ØÖµ
ÒƳýÁËÐеü´úÆ÷Öеĵ¼³ö×ֶΠTotalRows

ÐÂÔö¹¦ÄÜ
ProtectSheet ÐÂÔöÖ§³Öͨ¹ýÖ¸¶¨µÄËã·¨±£»¤¹¤×÷±í£¬Ö§³ÖµÄËã·¨°üÀ¨: XOR¡¢MD4¡¢MD5¡¢SHA1¡¢SHA256¡¢SHA384 ºÍ SHA512
UnprotectSheet Ö§³Öͨ¹ýÖ¸¶¨µÚ¶þ¸ö¿ÉÑ¡²ÎÊýÔÚÒƳý¹¤×÷±í±£»¤Ê±ÑéÖ¤ÃÜÂë
ÐÂÔö 71 Ïʽº¯Êý: AVERAGEIFS, BETADIST, BETA.DIST, BETAINV, BETA.INV, BINOMDIST, BINOM.DIST, BINOM.DIST.RANGE, BINOM.INV, CHIINV, CHITEST, CHISQ.DIST, CHISQ.DIST.RT, CHISQ.INV, CHISQ.INV.RT, CHISQ.TEST, CONFIDENCE.T, CORREL, COVAR, COVARIANCE.P, CRITBINOM, ERROR.TYPE, EXPON.DIST, EXPONDIST, F.DIST, F.DIST.RT, FDIST, F.INV, F.INV.RT, FINV, FORMULATEXT, F.TEST, FTEST, GAMMA.DIST, GAMMADIST, GAMMA.INV, GAMMAINV, GAMMALN.PRECISE, GAUSS, HOUR, HYPGEOM.DIST, HYPGEOMDIST, INDIRECT, LOGINV, LOGNORM.DIST, LOGNORMDIST, LOGNORM.INV, MODE, MODE.MULT, MODE.SNGL, NEGBINOM.DIST, NEGBINOMDIST, PHI, SECOND, SERIESSUM, SUMIFS, SUMPRODUCT, SUMX2MY2, SUMX2PY2, SUMXMY2, T.DIST, T.DIST.2T, T.DIST.RT, TDIST, TIMEVALUE, T.INV, T.INV.2T, TINV, T.TEST, TTEST, TYPE
±£´æ»òÁí´æΪ¹¤×÷²¾Ê±Ôö¼Ó¶ÔÎļþÀ©Õ¹Ãû½øÐмì²é
Ö§³ÖÉèÖù¤×÷²¾ÊÓͼģʽºÍÏÔʾ/Òþ²Ø±ê³ß
ÒýÈëÒÀÀµ¿â NFP (number format parser) ÒÔÔö¼Ó¶Ô×Ô¶¨Òåʱ¼ä¡¢ÈÕÆÚºÍÎı¾ÀàÐÍÊý×Ö¸ñʽµÄÖ§³Ö£¬¿É¶Ô°üº¬ 19 ÖÖÓïÑÔ£¨ÄϷǺÉÀ¼Óï¡¢ÃϼÓÀ­Óï¡¢ººÓï¡¢Ó¢Óï¡¢·¨Óï¡¢µÂÓï¡¢°ÂµØÀûÓï¡¢°®¶ûÀ¼Óï¡¢Òâ´óÀûÓï¡¢¶íÓï¡¢Î÷°àÑÀÓ̩Óï¡¢²ØÓï¡¢ÍÁ¶úÆäÓï¡¢Íþ¶ûÊ¿Óï¡¢ÎÖÂå·òÓï¡¢¿ÆÈøÓï¡¢ÒÍÓïºÍ×æ³Ó±¾µØÔ·ÝÃû³ÆºÍ 12 СʱÖƸñʽµÄÊý×Ö¸ñʽ±í´ïʽ½øÐнâÎö
ÐÂÔö API: SetWorkbookPrOptions ºÍ GetWorkbookPrOptions Ö§³ÖÉèÖúͻñÈ¡¹¤×÷²¾ÖÐµÄ FilterPrivacy Óë CodeName ÊôÐÔ£¬ÒÔ½â³ý²¿·ÖÇé¿öÏÂÏò¹¤×÷²¾ÖÐǶÈë VBA ¹¤³ÌʱµÄÏÞÖÆ
¹«Ê½¼ÆËãÒýÇæÖ§³ÖÖÐ׺ÔËËã·ûºó°üº¬ÎÞ²ÎÊý¹«Ê½º¯ÊýµÄ¼ÆËã
Ö§³ÖÒÔÎı¾ÐÎʽ¶ÁÈ¡²¼¶ûÐ͵¥Ôª¸ñµÄÖµ
ͨ¹ý AddChart º¯ÊýÌí¼ÓÔ²»·Í¼Ê±£¬Ö§³ÖÖ¸¶¨Ô²»·Í¼ÄÚ¾¶´óС
ÐÂÔöµ¼³ö 4 Ïî´íÎóÐÅÏ¢ ErrPasswordLengthInvalid, ErrUnsupportedHashAlgorithm, ErrUnsupportedNumberFormat, ErrWorkbookExt£¬ÒԱ㿪·¢Õ߿ɸù¾Ý²»Í¬µÄ´íÎóÀàÐͽøÐвÉÈ¡ÏàÓ¦´¦Àí

¼æÈÝÐÔÌáÉý
ÌáÉýÓë LibreOffice µç×Ó±í¸ñÓ¦ÓóÌÐòµÄ¼æÈÝÐÔ£¬ÐÞ¸´ÔÚ LibreOffice Öдò¿ªµÄ¹¤×÷±íÃû°üº¬¿Õ¸ñʱ£¬×Ô¶¯¹ýÂËÆ÷ʧЧµÄÎÊÌâ
ÌáÉý¶Ô¹¤×÷²¾ÖÐÌæ´úÄÚÈݵÄÖ§³Ö£¬±£Áô¹¤×÷²¾¡¢¹¤×÷±íÒÔ¼° drawingML ÖеÄÌæ´úÄÚÈÝ
ÌáÉýÓëÒ³ÃæÉèÖÃÖдòÓ¡ÖÊÁ¿ DPI ÉèÖÃÊôÐԵļæÈÝÐÔ

ÎÊÌâÐÞ¸´
ÐÞ¸´Áí´æΪ¹¤×÷²¾Ê±£¬Ò³Ãæ²¼¾ÖÊôÐÔ¶ªÊ§µÄÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öÏ£¬¶Ô¹¤×÷±í½øÐÐÐ޸ĺóºÏ²¢µ¥Ôª¸ñÇøÓòδ¸üеÄÎÊÌâ
ÐÞ¸´Ñùʽ½âÎöÒì³£µ¼ÖµĴÖÌåºÍ²¿·ÖÆäËû×ÖÌåÑùʽ¶ªÊ§ÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öϽ«Îĵµ±£´æΪ XLAM / XLSM / XLTM / XLTX ¸ñʽºóÎĵµË𻵵ÄÎÊÌâ
µ¥Ôª¸ñÑùʽ֧³Ö¼Ì³ÐÐÐ/ÁÐÑùʽ£¬ÒÔÐÞ¸´¶Ô¹¤×÷±í½øÐÐÐ޸ĺóºÏ²¢µ¥Ôª¸ñÇøÓòµ¥Ôª¸ñÑùʽ²»ÕýÈ·µÄÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öÏ»ñÈ¡µ¥Ôª¸ñÑùʽ ID ´íÎóµÄÎÊÌâ
ÐÞ¸´±àºÅΪ 42 µÄÄÚ½¨Êý×Ö¸ñʽ¶¨Òå´íÎóµÄÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öÏÂÊý×Ö¾«¶È½âÎö´íÎóµÄÎÊÌâ
SetCellDefault Ö§³ÖÉèÖ÷ÇÊý×ÖÀàÐ͵¥Ôª¸ñµÄÖµ
ÐÞ¸´²¿·ÖÇé¿öÏÂÁí´æΪ¹¤×÷²¾Ê±£¬ÏÔʾ»òÒþ²Ø¹¤×÷±í±êÇ©ÊôÐÔ¶ªÊ§µÄÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öÏÂǶÌ×¹«Ê½¼ÆËã´íÎóµÄÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öϹ«Ê½¼ÆËã½á¹û¾«¶È²»×¼È·ÒÔ¼°ÔÚ x86 ºÍ arm64 ¼Ü¹¹ CPU Ϲ«Ê½¼ÆËã½á¹û¾«¶È²»Ò»ÖµÄÎÊÌâ
ÐÞ¸´²¿·ÖÇé¿öÏÂʹÓÿÆѧ¼ÇÊý·¨±íʾµÄÊýÖµ½âÎöʧ°ÜµÄÎÊÌâ
ÐÞ¸´Í¼±íÖá×î´óÖµ×îСֵΪ 0 ʱ²»Æð×÷ÓõÄÎÊÌâ

ÐÔÄÜÓÅ»¯
Ìá¸ßʹÓÃÐеü´úÆ÷½øÐÐÁ÷ʽ¶ÁÈ¡µÄÐÔÄÜ£¬µ±¶ÁÈ¡°üº¬´ó¹æÄ£Êý¾ÝµÄµç×Ó±í¸ñÎĵµÊ±£¬Äڴ濪ÏúÏà½ÏÓÚÉÏÒ»°æ±¾½µµÍ×î¸ßÔ¼ 50%£¬ÄÚ´æÀ¬»ø»ØÊÕ´ÎÊý½µµÍÔ¼ 80%

ÆäËû
Go Modules ÒÀÀµÄ£¿é¸üÐÂ
µ¥Ôª²âÊÔÓëÎĵµ¸üÐÂ
°üº¬¼òÌåÖÐÎÄ¡¢Ó¢Óï¡¢·¨Óï¡¢¶íÓï¡¢ÈÕÓï¡¢º«Óï¡¢°¢À­²®Óï¡¢µÂÓïºÍÎ÷°àÑÀÓïµÄ¶à¹úÓïÑÔÎĵµÍøÕ¾¸üÐÂ


ÉÏһƪ£ºbk-ciÀ¶¾¨³ÖÐø¼¯³Éƽ̨ v1.8.0
ÏÂһƪ£ºÃ»ÓÐÁË

Ïà¹ØÄÚÈÝ

ÈÈÃÅÍƼö