Mobile Report rendering, the first requirement is the page with the phone screen size auto-scaling (adaptive), the following gives a general report on the Finereport Mobile Adaptive Scheme, suitable for Finereport 7.1 before the version.
First, look at the adaptive effects we can do today:
Currently, with FIneReport by a certain size of the report, if the screen pixels on the larger phone open, we can do to automatically enlarge, but we currently can only enlarge twice times. Therefore, in the production of mobile reports, the size should be a trade-offs.
before the mobile report to a customer, to achieve the iphone4, millet, Huawei P6, Samsung S4 and other mobile phone on the adaptive effect (the adaptation is mainly the width or the horizontal adaptive), The following are the specific practices:
-
Set the page size, set the page width to 0, and set the page margin to
-
The report design interface has a red margin line, which, given the accuracy problem, can be set to a smaller cell width first.
Note: In the production process also found a problem, the mobile side open the report, not necessarily landscape-adaptive, when the current report portrait height is less than the horizontal width, will become a longitudinal adaptive. The height and width mentioned here are not the width and height of the page paper, but the height and width of the area occupied by the cell with the data.
Mobile-Adaptive scheme of Finereport general report