Warning: Maximum number of format records exceeded. Using default format.

Source: Internet
Author: User
Warning:  Maximum number of format records exceeded.  Using default format.Warning:  Maximum number of format records exceeded.  Using default format.Warning:  Maximum number of format records exceeded.  Using default format.Warning:  Maximum number of format records exceeded.  Using default format.Warning:  Maximum number of format records exceeded.  Using default format.

Today, when solving a bug, when using jxl to export excel, the time type is not processed at first, and the post-event characters are imported. Customer dissatisfaction,

Use the following interface

                            java.util.Date day = (Date) labelValueObj;                            jxl.write.DateFormat df = new jxl.write.DateFormat("yyyy-MM-dd");                            jxl.write.DateTime dateCell = new jxl.write.DateTime(cell.getColumn(), cell.getRow() + j,                                    day, new WritableCellFormat(df));                            wSheet.addCell(dateCell);

But warning: Maximum number of format records exceeded. Using default format. Warning appears. In most cases, the data of the time type is incorrect and becomes a number.

Google is a good thing. By the way, the Party Central Committee scolded Google for using it in China. [I bought a table last year]

It is said that the source code can be set to a maximum of 100 new writablecellformat, and a Waring error will occur if there are too many,

jxl.biff.FormattingRecordsprivate static final int maxFormatRecordsIndex = 0x1b9;

Change

private static final int maxFormatRecordsIndex = Integer.MAX_VALUE;

After the JAR file is modified, the link is:

Http://download.csdn.net/detail/dracotianlong/5378569

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.