/** * Print string query. * * @param initial the initial * @return the string query */ public StringQuery<T> print(@Nonnull T initial) { value = initial; try { int textLines = getString(value).split("\n").length; int lines = (int) (Math.max(Math.min((textLines), 20), 3) * (200.0 / 12)); height1 = String.format("%dpx", lines); height2 = String.format("%dpx", lines + 40); } catch (JsonProcessingException e) { throw new RuntimeException(e); } log.p("<iframe src=" + id + " style=\"margin: 0px; width: 100%; height: " + height2 + ";\"></iframe>"); return this; }
/** * Print string query. * * @param initial the initial * @return the string query */ public StringQuery<T> print(@Nonnull T initial) { value = initial; try { int textLines = getString(value).split("\n").length; int lines = (int) (Math.max(Math.min((textLines), 20), 3) * (200.0 / 12)); height1 = String.format("%dpx", lines); height2 = String.format("%dpx", lines + 40); } catch (JsonProcessingException e) { throw new RuntimeException(e); } log.p("<iframe src=" + id + " style=\"margin: 0px; width: 100%; height: " + height2 + ";\"></iframe>"); return this; }
try { try { outer.p("Subreport: %s %s %s %s", stripPrefixes(URLDecoder.decode(subreportName, "UTF-8"), "_", "/", "-", " ", "."), outer.link(subreportFile, "markdown"), outer.link(new File(root, reportName + ".html"), "html"),
try { try { outer.p("Subreport: %s %s %s %s", stripPrefixes(URLDecoder.decode(subreportName, "UTF-8"), "_", "/", "-", " ", "."), outer.link(subreportFile, "markdown"), outer.link(new File(root, reportName + ".html"), "html"),