Thursday, October 29, 2015

NextReports: line spacing

From version 8.3 a new cell property will be available: line spacing.

This property is in percents and its default value is 100.  This property has meaning if wrap text is set to true and only for PDF, HTML and DOCX exporters.

A simple header with default line spacing looks like:

If we increase the line spacing to 140, it will look like:

Monday, October 26, 2015

NextReports: Report with Empty Data

When NextReports generates a report, in case there is no data, the generation process stops without creating any file.

From version 8.3 we will extend this with a new feature. Users will be able to configure how the generation process must behave regarding empty data. On any report, a new property called "show empty data" will be available. By default it is set to false, meaning no file will be created in case of empty data.

But if we set it to true, then the report will be generated showing everything is available in all bands except detail band. "Timesheet" demo report from designer will show like this:
In addition, users can create some layout in detail band for cases with empty data. For example, in our "Timesheet" report we add a new detail row with cell "No Data Found in Query!".

To make this row be hidden in case there is data, we must select for this cell a "hide when expression" property. A new variable called EMPTY_DATA will help us to achieve this.

Now, when we generate the "Timesheet" report and there is no data, the result will look like:

Tuesday, September 29, 2015

Deploy NextReports Server on WebLogic 12c

First, you should create a nextreports-server.war folder and unarchive the war file here.

Inside nextreports-server.war/WEB-INFyou should add weblogic.xml file:
<?xml version="1.0" encoding="UTF-8"?>


Here we specified we want another joda library than that used by weblogic.

Next, we have to register reports folder as a web context. We create a reports.war folder as a sibling to nextreports-server.war, and inside it we have a WEB-INF folder with two files:  
<?xml version="1.0" encoding="UTF-8"?>
 xmlns="" xmlns:xsi=""
and weblogic.xml where we specified local path to our reports folder:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "">





After your server starts, you should accordingly modify your server settings like base url, reports url , mail server and so on.

Publish static context to WebLogic

Tuesday, August 18, 2015

NextCharts: Bar Charts with Negative Values

NextCharts has now support for bar charts with negative values. A new chart type called nbar was introduced. From NextReports 8.2 version this feature will be part of designer and server.

A simple bar chart with negative and positive values will show all values over X axis if chart type is bar:

If we just change the type from bar to nbar,  X axis will be considered at 0, so positive values will be shown over it and negative values will be shown under it:

In case all values for nbar are positive, then it will be no difference between bar with startingFromZero=true and a nbar chart.

In case all values for nbar are negative, then the chart will have all its values under X axis:

nbar chart can support as styles glass (as above) or normal:

Wednesday, August 05, 2015

NextCharts: Highlight selection

From version 1.5, in addition to tooltip message,  NextCharts allows to highlight selected element through a changed color. This version of library will be used by NextReports Server 8.2

There are different situations which were taken into account. For simple 2D charts like line, area, bar, pie, bubble, selected element (like bar, arc, circle) will have another color, lighter or darker depending on the brightness of the current color. For 3D charts like dome, cylinder, parallelepiped, selected element will be the 'visible' part of it and it needs some more drawing adjustments to show (after fill) all the lines and arcs that are supposed to be on top.

Let's see some examples of highlighting.

Bar highlighting:

Stackedbar highlighting:

Line highlighting:

Pie highlighting:

Cylinder highlighting with different area selection between top and other elements: