Common Errors and solutions when using the java report tool FineReport (3)

Source: Internet
Author: User

Common Errors and solutions when using the java report tool FineReport (3)
Abstract: if there is a problem, first search for the document, then check whether du Niang is there, and then check whether there is a forum. If an error is reported, the log must be viewed. Below is a simple list of common problems that are mentioned in most documents.

1. repeated column width is largerthan paper width:

This article should be well understood. For example, the width of the template page can only be opened by five columns, and the results are repeated and frozen for the six columns. This logic is definitely not the case.

2. The template cannot be opened and access is denied:

It may be that the Windows 7 operating system has permissions on files.

3. The report cannot be previewed after the designer is installed (404 error ):

Add the servlet tag in web. xml. The specific code is as follows:

<Servlet>

<Servlet-name> ReportServer </servlet-name>

<Servlet-class> com. fr. web. ReportServlet </servlet-class>

<Load-on-startup> 0 </load-on-startup>

</Servlet>

<Servlet-mapping>

<Servlet-name> ReportServer </servlet-name>

<Url-pattern>/ReportServer </url-pattern>

</Servlet-mapping>

4. The object does not support this attribute or the method, XXX is not defined:

Unified page encoding and js encoding (server encoding in the report). For example, if the page encoding is UTF-8 and the server encoding is gbk, there are three uniform encoding methods, next we will look at a specific setting. Change the management platform code to be consistent with the page code, open the FR management platform, in the management system> System Management> general properties, modify the server code to UTF-8, such:


5. error due to date comparison:

In my test, I used my own sqlserver2005.2012/01/01 format to compare the date format with the 2012-01-01 format on FR. The date formats read directly from the database are relatively long, it is not only the year, month, and day, but cannot be read. I don't know why. You can see it during preview. Then I added a left (todate ($), 10) in the condition attribute to solve the problem. todate is converted to-join, and the first 10 is the year, month, and day.

6. High inconsistency of rows extended by a cell (fill in the preview ):

However, there is no problem with paging preview. The data dictionary was set during the final discovery. If one row of cells with the data dictionary set cannot be displayed, a new line is entered, and the cell width is increased. Is it because the actual value is used for calculating the space required for filling in the preview? Solution: Pay attention to the problem. Just pull the width.

7. Question about the equals sign displayed in the Custom Data Dictionary:

FineReport is like a user-defined data dictionary. If it is not '=', it is treated as a string, and '=' is started as a formula. Therefore, an equal sign is blank. = "="

8. An error is reported when the content of a cell is too large:

Temporary solution: directly Merge multiple cells to add input content.

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.