{"id":406882,"date":"2024-06-29T19:12:25","date_gmt":"2024-06-29T19:12:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=406882"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=406882","title":{"rendered":"<span>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Crosstab \u0432 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 JasperReports<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e Java-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/community.jaspersoft.com\/project\/jasperreports-library\" rel=\"noopener noreferrer nofollow\">JasperReports<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"https:\/\/habr.com\/ru\/company\/tinkoff\/blog\/461719\/\" rel=\"noopener noreferrer nofollow\">\u041e\u043f\u0435\u043d\u0441\u043e\u0440\u0441-\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438<\/a> \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0431 \u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f PDF \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u043b\u043e\u043c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0432 \u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435\u0440\u0435\u0434\u043a\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0432 \u0442\u0432\u0435\u0440\u0434\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 JasperReports \u0435\u0441\u0442\u044c \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 Crosstab. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0434\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u043e\u0434\u043d\u044b \u043a\u0430\u043a \u043e\u0442\u0447\u0435\u0442\u044b \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b &#8212; \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0441\u0440\u0435\u0434\u0435 <a href=\"https:\/\/community.jaspersoft.com\/project\/jaspersoft-studio\" rel=\"noopener noreferrer nofollow\">TIBCO Jaspersoft\u00ae Studio<\/a><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u044b\u0445 \u0444\u043e\u0440\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 JasperReports \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0430\u0431\u043e\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 DataSet. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.  \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 open-source \u0440\u0435\u0448\u0435\u043d\u0438\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/lsfusion\/blog\/541526\/\" rel=\"noopener noreferrer nofollow\">MyCompany<\/a> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430 open-source \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/lsfusion\" rel=\"noopener noreferrer nofollow\">lsFusion<\/a>.  <\/p>\n<p>\u0412\u0441\u0435 \u043d\u0438\u0436\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u043a jasper report \u0432\u043e\u043e\u0431\u0449\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 LsFusion. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0430\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f java \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u0430\u043a \u0432\u043d\u0435\u0448\u043d\u044f\u044f &#8212; \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430.<\/p>\n<h3>1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 LsFusion\/MyCompany<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u0430 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 SalesLedgerReport. \u0414\u043e\u043f\u0438\u0448\u0435\u043c \u0432 \u0444\u0430\u0439\u043b  SalesLedgerReport.lsf \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<pre><code> \/\/ ++ \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0435\u0447\u0430\u0442\u0438 printXlsx '\u041f\u0435\u0447\u0430\u0442\u044c \u0445slx' (){  PRINT salesLedgerReport    XLSX; } print '\u041f\u0435\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0432\u044c\u044e' (){  PRINT salesLedgerReport    PREVIEW; }  EXTEND FORM salesLedgerReport \/\/ \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0435\u0447\u0430\u0442\u0438 PROPERTIES   printXlsx(), print(); <\/code><\/pre>\n<h3>2. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 jrxml<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u043e\u0442\u0447\u0435\u0442\u0435 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u043c \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f 2 \u043a\u043d\u043e\u043f\u043a\u0438 <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ui\/gk\/3_\/uigk3_f7ud2vc-kcvj4yl9ddkx4.png\" width=\"359\" height=\"219\" data-src=\"https:\/\/habrastorage.org\/webt\/ui\/gk\/3_\/uigk3_f7ud2vc-kcvj4yl9ddkx4.png\"\/><\/figure>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u044b jrxml \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u0440\u0435\u0432\u044c\u044e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ui\/zc\/dm\/uizcdmm5qwffkkubfoqfwwf4noo.png\" width=\"764\" height=\"217\" data-src=\"https:\/\/habrastorage.org\/webt\/ui\/zc\/dm\/uizcdmm5qwffkkubfoqfwwf4noo.png\"\/><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <code>..\/src\/main\/lsfusion<\/code> \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0444\u0430\u0439\u043b<\/p>\n<pre><code>Sales_salesLedgerReport.jrxml <\/code><\/pre>\n<h3>3. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 jrxml<\/h3>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u043e\u043c <code>Sales_salesLedgerReport.jrxml<\/code> \u0432 <a href=\"https:\/\/community.jaspersoft.com\/project\/jaspersoft-studio\" rel=\"noopener noreferrer nofollow\">TIBCO Jaspersoft\u00ae Studio<\/a><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/yt\/ch\/uu\/ytchuunjckuivkkucqs3t3dte_k.png\" width=\"289\" height=\"503\" data-src=\"https:\/\/habrastorage.org\/webt\/yt\/ch\/uu\/ytchuunjckuivkkucqs3t3dte_k.png\"\/><\/figure>\n<p>\u0412 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0443\u0436\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f Detail \u043e\u0431\u043b\u0430\u0441\u0442\u044c. \u0414\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 <code>Detail 1<\/code> \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c.<\/p>\n<h3>4. \u0412\u0441\u0442\u0430\u0432\u043a\u0430 Crosstab<\/h3>\n<ol>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c <code>Crosstab<\/code> \u0438\u0437 \u043f\u0430\u043b\u0438\u0442\u0440\u044b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Summary<\/p>\n<\/li>\n<\/ol>\n<p>\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u0430<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/zj\/y3\/je\/zjy3jegw-4yelso77z7oq2bbdty.png\" width=\"785\" height=\"510\" data-src=\"https:\/\/habrastorage.org\/webt\/zj\/y3\/je\/zjy3jegw-4yelso77z7oq2bbdty.png\"\/><\/figure>\n<p>\u041a\u043e\u043b\u043e\u043d\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0433\u043e\u0434, \u043c\u0435\u0441\u044f\u0446 (\u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u043c\u0435\u0441\u044f\u0446\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u043f\u043e\u0437\u0436\u0435)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/6g\/2u\/pg\/6g2upg1dfc6q-ofmqpp2czqbv4c.png\" width=\"637\" height=\"511\" data-src=\"https:\/\/habrastorage.org\/webt\/6g\/2u\/pg\/6g2upg1dfc6q-ofmqpp2czqbv4c.png\"\/><\/figure>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u0440\u0443\u043f\u043f \u0432\u043e\u0437\u044c\u043c\u0435\u043c 4 \u0432\u0435\u0440\u0445\u043d\u0438\u0445 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430. \u0421\u0440\u0430\u0437\u0443 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u0438\u0442\u043e\u0433\u043e\u043c \u0432\u043d\u0438\u0437\u0443, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0432\u0435\u0440\u0445\u0443. \u0421\u0442\u0440\u043e\u0447\u043a\u0438 \u0438\u0442\u043e\u0433\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0440\u043e\u043b\u044c \u0441\u0442\u0440\u043e\u043a \u0433\u0440\u0443\u043f\u043f. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/7i\/2v\/-p\/7i2v-pkargkhm2p74b74ycrucn4.png\" width=\"676\" height=\"524\" data-src=\"https:\/\/habrastorage.org\/webt\/7i\/2v\/-p\/7i2v-pkargkhm2p74b74ycrucn4.png\"\/><\/figure>\n<p>\u041c\u0435\u0440\u0430\u043c\u0438 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0441\u0443\u043c\u043c\u0443 \u043f\u0440\u043e\u0434\u0430\u0436. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/nv\/hf\/gc\/nvhfgcoyoexjovtfcbsuj-6o3fe.png\" width=\"675\" height=\"522\" data-src=\"https:\/\/habrastorage.org\/webt\/nv\/hf\/gc\/nvhfgcoyoexjovtfcbsuj-6o3fe.png\"\/><\/figure>\n<p>\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041e\u043d\u043e \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0440\u043a\u043e\u0435, \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u0442 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/um\/mp\/0a\/ummp0aasopazw-owxevf17yeop0.png\" width=\"508\" height=\"358\" data-src=\"https:\/\/habrastorage.org\/webt\/um\/mp\/0a\/ummp0aasopazw-owxevf17yeop0.png\"\/><\/figure>\n<ol start=\"2\">\n<li>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044b <code>Detail1<\/code> \u0438 \u0448\u0430\u043f\u043a\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443c\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>\u041f\u0435\u0447\u0430\u0442\u044c \u0445slx<\/code> \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/js\/xm\/4y\/jsxm4ytglu0gbmkdyb9deirovo4.png\" width=\"1063\" height=\"698\" data-src=\"https:\/\/habrastorage.org\/webt\/js\/xm\/4y\/jsxm4ytglu0gbmkdyb9deirovo4.png\"\/><\/figure>\n<p> \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>\u041f\u0435\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0432\u044c\u044e<\/code> \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430. \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u0430 \u043f\u043e\u0434 \u0432\u044b\u0432\u043e\u0434 \u0432 xlsx \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0432 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<h3>4. \u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a\u043e\u043c \u0434\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430.<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430 \u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440 (\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u0432\u044b\u0448\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443)<\/p>\n<\/li>\n<\/ol>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/_x\/8m\/vm\/_x8mvmsvfrqfywawtzjsgmnuk1c.png\" width=\"244\" height=\"225\" data-src=\"https:\/\/habrastorage.org\/webt\/_x\/8m\/vm\/_x8mvmsvfrqfywawtzjsgmnuk1c.png\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ca\/bg\/8x\/cabg8xpr_qnznxcsbqa9fpc1kx8.png\" width=\"625\" height=\"550\" data-src=\"https:\/\/habrastorage.org\/webt\/ca\/bg\/8x\/cabg8xpr_qnznxcsbqa9fpc1kx8.png\"\/><\/figure>\n<ol start=\"2\">\n<li>\n<p>\u0412\u0435\u0440\u043d\u0435\u043c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u043c\u0435\u0440\u044b \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u0438\u043c\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/be\/tj\/da\/betjdajr4ooyv3ncq0483kn2aty.png\" width=\"1168\" height=\"359\" data-src=\"https:\/\/habrastorage.org\/webt\/be\/tj\/da\/betjdajr4ooyv3ncq0483kn2aty.png\"\/><\/figure>\n<ol start=\"3\">\n<li>\n<p>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u043c \u043f\u043e\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e\u0448\u0438\u0440\u0435. \u041f\u0440\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u044f\u0447\u0435\u0439\u043a\u0438 \u043f\u0440\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0436\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043e\u0442\u0447\u0435\u0442\u0430 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435 \u043f\u043e\u043b\u0435\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/i0\/ca\/gr\/i0cagrpbo-saq81hz_o4bgqo7ok.png\" width=\"772\" height=\"414\" data-src=\"https:\/\/habrastorage.org\/webt\/i0\/ca\/gr\/i0cagrpbo-saq81hz_o4bgqo7ok.png\"\/><\/figure>\n<ol start=\"4\">\n<li>\n<p>\u041e\u0444\u043e\u0440\u043c\u0438\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/61\/q3\/xc\/61q3xckwfj_xtrg4wem2gwrp2y8.png\" width=\"1183\" height=\"436\" data-src=\"https:\/\/habrastorage.org\/webt\/61\/q3\/xc\/61q3xckwfj_xtrg4wem2gwrp2y8.png\"\/><\/figure>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c &#8212; \u043f\u0435\u0440\u0435\u0431\u0440\u043e\u0441\u0438\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 (\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 static \u0432 text), \u0430 \u0441\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441 0 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/hg\/wo\/aw\/hgwoawlbksb2jiegjaeiypcdcvk.png\" width=\"861\" height=\"328\" data-src=\"https:\/\/habrastorage.org\/webt\/hg\/wo\/aw\/hgwoawlbksb2jiegjaeiypcdcvk.png\"\/><\/figure>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0438\u043b\u0438, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043e\u0442\u0447\u0435\u0442 \u0441\u0432\u043e\u0438. \u041d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u0438 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/8z\/ns\/bo\/8znsbo-w9jnrakowju9famdcoya.png\" width=\"995\" height=\"504\" data-src=\"https:\/\/habrastorage.org\/webt\/8z\/ns\/bo\/8znsbo-w9jnrakowju9famdcoya.png\"\/><\/figure>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438 Crosstab \u0443\u0434\u043e\u0431\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u0442\u043e\u0433\u0438 \u043f\u043e \u0433\u0440\u0443\u043f\u043f\u0430\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0438 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u0442\u043e\u0433\u043e\u0432 \u043f\u043e \u0433\u0440\u0443\u043f\u043f\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043d\u0438\u0436\u0435\u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u0443\u0440\u043e\u0432\u043d\u044f\u0445. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mz\/wj\/jw\/mzwjjwhwsjkubhdopc6pfdpe8fc.png\" width=\"827\" height=\"498\" data-src=\"https:\/\/habrastorage.org\/webt\/mz\/wj\/jw\/mzwjjwhwsjkubhdopc6pfdpe8fc.png\"\/><\/figure>\n<p>\u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u0448\u0438\u0440\u043e\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0434\u043e\u043b\u0435\u0439 \u0434\u043e \u0444\u043e\u0440\u043c\u0443\u043b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wm\/nb\/nx\/wmnbnxidarbk_dizemhddt57qty.png\" width=\"1078\" height=\"713\" data-src=\"https:\/\/habrastorage.org\/webt\/wm\/nb\/nx\/wmnbnxidarbk_dizemhddt57qty.png\"\/><\/figure>\n<h3>5. \u041f\u0440\u043e\u0447\u0438\u0435 \u043c\u0435\u043b\u043e\u0447\u0438<\/h3>\n<p>\u0412 \u0433\u043e\u0442\u043e\u0432\u043e\u043c \u043e\u0442\u0447\u0435\u0442\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u043a\u0443\u0441\u043d\u043e\u0441\u0442\u0438<\/p>\n<ol>\n<li>\n<p>\u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0438\u0436\u0435\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u0433\u0440\u0443\u043f\u043f<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u0434\u0435\u0440\u0435\u0432\u043e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u0430 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0443\u0441\u043a \u043f\u0443\u0441\u0442\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\/\u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u0441\u0435 \u044d\u0442\u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 (\u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439) \u0432 jasper report  \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u0435\u043b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u043e\u0442\u0447\u0435\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443 (\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435) \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043c\u0435\u0449\u0430\u044e \u043d\u043e\u043c\u0435\u0440 \u0443\u0440\u043e\u0432\u043d\u044f. \u0418 \u043f\u043e\u0441\u043b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f xlsx \u0444\u0430\u0439\u043b\u0430 \u0434\u0435\u043b\u0430\u044e \u0435\u0433\u043e \u0434\u043e\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/kk\/fd\/6h\/kkfd6hyyrkrifiwxhyuxvbpwslu.png\" width=\"700\" height=\"407\" data-src=\"https:\/\/habrastorage.org\/webt\/kk\/fd\/6h\/kkfd6hyyrkrifiwxhyuxvbpwslu.png\"\/><\/figure>\n<p>\u0418\u0442\u0430\u043a<\/p>\n<ol>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043f\u0430\u043f\u043a\u0443 <code>...\/src\/main\/java<\/code>  \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>XlsCreateRowOutline.java<\/code> \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>XlsCreateRowOutline.java<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">        import lsfusion.base.file.RawFileData;         import lsfusion.server.data.sql.exception.SQLHandledException;         import lsfusion.server.language.ScriptingErrorLog;         import lsfusion.server.language.ScriptingLogicsModule;         import lsfusion.server.logics.action.controller.context.ExecutionContext;         import lsfusion.server.logics.classes.ValueClass;         import lsfusion.server.logics.property.classes.ClassPropertyInterface;         import lsfusion.server.physics.dev.integration.internal.to.InternalAction;         import org.apache.commons.lang.StringUtils;         import org.apache.poi.ss.usermodel.Cell;         import org.apache.poi.ss.usermodel.CellType;         import org.apache.poi.ss.usermodel.Name;         import org.apache.poi.xssf.usermodel.*;          import java.io.ByteArrayOutputStream;         import java.io.IOException;         import java.io.OutputStream;         import java.sql.SQLException;         import java.util.ArrayList;         import java.util.HashMap;         import java.util.Iterator;         import java.util.Map;          import static java.lang.Math.abs;         import static java.lang.Math.max;          \/\/https:\/\/poi.apache.org\/components\/spreadsheet\/quick-guide.htm          public class XlsCreateRowOutlineV2  extends InternalAction {     public XlsCreateRowOutlineV2(ScriptingLogicsModule LM, ValueClass... classes) {         super(LM, classes);     }     XSSFSheet sheet;      @Override     protected void executeInternal(ExecutionContext&lt;ClassPropertyInterface> context) throws SQLException, SQLHandledException {         \/\/ \u043a\u043e\u0441\u0442\u044b\u043b\u044c - \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0435 \u0434\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u044d\u043a\u0441\u0435\u043b\u044c         \/\/ \u0432\u0435\u0441\u0438\u044f 2 - \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u0442\u0430\u0431\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \u0434\u043b\u044f \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0439         \/\/ 1. \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u043e\u0442\u0447\u0435\u0442\u0430 - \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b\/\u043f\u043e\u0434\u0433\u0440\u0443\u043f\u043f\u044b         \/\/ 2. \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430         \/\/ 3. \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e \u0432\u0441\u0435\u043c \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u043c - \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c         \/\/ 4. \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043e\u0442\u0447\u0435\u0442\u0430 - \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f crosstab         RawFileData f =  (RawFileData)getParam(0, context);  \/\/ \u0444\u0430\u0439\u043b \u044d\u043a\u0441\u0435\u043b\u044f         Integer negativeRed = (Integer)getParam(1, context); \/\/1 - \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c         Integer fixColumn = (Integer)getParam(2, context);   \/\/ \u0435\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 0 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0446\u044b         Integer fixRow = (Integer)getParam(3, context);      \/\/ \u0435\u0441\u043b\u0438 >0 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438         Integer columnTreeIndex = (Integer)getParam(4, context); \/\/ \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e - \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u0438                                                                    \/\/ \u0435\u0441\u043b\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c - \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u0430                                                                    \/\/ \u0441\u0430\u043c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a abs \u043e\u0442 \u0447\u0438\u0441\u043b\u0430 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435         Integer allLevelsRequired = (Integer)getParam(5, context); \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u043e\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443 \u0443\u0440\u043e\u0432\u043d\u044f, \u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c                                                                       \/\/ 0 - \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 1 \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439                                                                       \/\/ 1 - \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f           Integer columnForTab = (Integer)getParam(6, context); \/\/  \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0441\u0442\u0438\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043e\u0444\u043e\u0440\u043c\u043b\u044f\u0442\u044c \u0441\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c          Map&lt;Integer, Map&lt;Integer,Integer>> ol = new HashMap&lt;>();         for (int i =0;i&lt;20;i++)  ol.put(i,new HashMap&lt;>());         int currentLevel=0;         int rowLevel=0;         int rowIndex=0;         Cell cell;         try {              XSSFWorkbook workbook = new XSSFWorkbook(f.getInputStream() );             sheet = workbook.getSheetAt(0);              \/\/ \u0443\u0434\u0430\u043b\u0438\u043c \u0434\u0443\u0431\u043b\u0438 \u0438\u043c\u0435\u043djd \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u044f\u043c\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 - \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435           java.util.List&lt;? extends Name> names =  workbook.getAllNames();           ArrayList&lt;String> namesInlist = new ArrayList&lt;>();           ArrayList&lt;Name> forDelete = new ArrayList&lt;>();           for (int i = 0; i &lt; names.size(); i++) {                 Name name = names.get(i);                 if (namesInlist.contains(name.getNameName())) {                    forDelete.add(name); \/\/                 }                 else {                    namesInlist.add(name.getNameName());                 }           }           for (int i = forDelete.size()-1; i >= 0; i--) workbook.removeName(forDelete.get(i));       for (rowIndex = 0; sheet.getLastRowNum() > rowIndex; rowIndex++) {         XSSFRow removingRow = sheet.getRow(rowIndex);          if (removingRow != null) {             if (                     removingRow.getCell(columnTreeIndex).getCellType() == CellType.NUMERIC                             &amp;&amp; abs(removingRow.getCell(columnTreeIndex).getNumericCellValue()) >= 0                 \/\/  &amp;&amp;  abs(removingRow.getCell(columnTreeIndex).getNumericCellValue())&lt;             ) {                 rowLevel = abs((int) removingRow.getCell(columnTreeIndex).getNumericCellValue());                 if (currentLevel &lt; rowLevel) {                     \/\/ \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0432\u044b\u0448\u0435\u043d                     while (currentLevel &lt; rowLevel) {                         ol.get(currentLevel).put(0, 1);                         ol.get(currentLevel).put(1, rowIndex);                         if (allLevelsRequired == 1) {                             currentLevel++; \/\/=rowLevel;                         } else {                             currentLevel = rowLevel;                         }                     }                 }                 \/\/ \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u043d\u0438\u0436\u0435\u043d - \u0441\u0431\u0440\u043e\u0441 \u0443\u0440\u043e\u0432\u043d\u044f                 while (currentLevel > rowLevel) {                     currentLevel--;                     if (ol.get(currentLevel).containsKey(0) &amp;&amp; (ol.get(currentLevel).get(0) == 1)) {                         ol.get(currentLevel).put(0, 0);                         sheet.groupRow(ol.get(currentLevel).get(1), rowIndex - 1);                     }                 }                 \/\/ \u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 - \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443                 if (removingRow.getCell(columnTreeIndex).getNumericCellValue() &lt; 0) {                     sheet.removeRow(removingRow);                     sheet.shiftRows(rowIndex + 1, sheet.getLastRowNum(), -1);                     rowIndex--;                 }             }         }     }     rowLevel = 0;     \/\/ \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u043d\u0438\u0436\u0435\u043d - \u0441\u0431\u0440\u043e\u0441 \u0443\u0440\u043e\u0432\u043d\u044f     while (currentLevel > rowLevel) {         currentLevel--;         if (ol.get(currentLevel).containsKey(0) &amp;&amp; (ol.get(currentLevel).get(0) == 1)) {             ol.get(currentLevel).put(0, 0);             sheet.groupRow(ol.get(currentLevel).get(1), rowIndex - 1);         }     }      XSSFCell cellXSSF;      \/\/ \u0432\u0441\u0435 \u0442\u0430\u0431\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f     \/\/ \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0421\u0422\u0418\u041b\u0418 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0414\u041e\u041b\u0416\u041d\u042b \u0411\u042b\u0422\u042c \u0421\u0412\u041e\u0418 - \u0442\u043e\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442     for (rowIndex = 0; sheet.getLastRowNum() > rowIndex; rowIndex++) {         Iterator&lt;Cell> cellIterator = sheet.getRow(rowIndex).cellIterator();         while (cellIterator.hasNext()) {             cell = cellIterator.next();             cellXSSF = (XSSFCell)cell;             if (cellXSSF.getCellType() == CellType.STRING                     &amp;&amp;                     cellXSSF.getColumnIndex() == columnForTab                     &amp;&amp;                     cellXSSF.getCellStyle().getIndention() == (short) 0                     &amp;&amp;                     sheet.getRow(rowIndex).getCell(columnTreeIndex).getCellType() == CellType.NUMERIC                     &amp;&amp;                     abs(sheet.getRow(rowIndex).getCell(columnTreeIndex).getNumericCellValue()) >= 0                 )                 {                     cellXSSF.getCellStyle().setIndention((short) ( abs(sheet.getRow(rowIndex).getCell(columnTreeIndex).getNumericCellValue()))  ) ;                 }              \/\/         else if (cellXSSF.getCellType() == CellType.FORMULA) {                 \/\/       cellXSSF.setCellFormula(cellXSSF.getStringCellValue());             \/\/    }             else if (negativeRed == 1 &amp;&amp; (cellXSSF.getCellType() == CellType.NUMERIC || cellXSSF.getCellType() == CellType.FORMULA)) {                 \/\/int s = 1;                 String format = cellXSSF.getCellStyle().getDataFormatString();                 if (format.contains(\"#,##0\") &amp;&amp; !format.contains(\"RED\")) {                     format = format.concat(\";[RED]-\").concat(format);                     cellXSSF.getCellStyle().setDataFormat(workbook.createDataFormat().getFormat(format));                 }             }         }     }           if(fixRow>0 || fixColumn>0){             sheet.createFreezePane(fixColumn,fixRow);          }          if(columnTreeIndex>0) {              sheet.setColumnHidden(columnTreeIndex,true);          }            OutputStream os = new ByteArrayOutputStream();         workbook.write(os);         RawFileData  rf = new RawFileData((ByteArrayOutputStream)os);         findProperty(\"fileXLS\").change(rf, context);         } catch (IOException e) {             e.printStackTrace();         } catch (ScriptingErrorLog.SemanticErrorException e) {             e.printStackTrace();         }        } } <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<ol>\n<li>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 lsFusion, \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<\/li>\n<\/ol>\n<pre><code>fileXLS = DATA EXCELFILE(); \/\/ \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c java \u043c\u043e\u0434\u0443\u043b\u044c xlsCreateRowOutline '\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0433\u0440\u0443\u043f\u043f' INTERNAL 'XlsCreateRowOutline' (EXCELFILE, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER);  \/\/ ++ \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0435\u0447\u0430\u0442\u0438 printXlsx '\u041f\u0435\u0447\u0430\u0442\u044c \u0445slx' (){   PRINT salesLedgerReport       XLSX SHEET 'Sheet1'   TO fileXLS; \/\/ \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0432 \u0444\u0430\u0439\u043b   xlsCreateRowOutline(fileXLS(), 0, 3, 5, 1, 0, 0, 2); \/\/ \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c   open(fileXLS());    \/\/ \u043e\u0442\u043a\u0440\u043e\u0435\u043c }  EXTEND FORM salesLedgerReport PROPERTIES    printXlsx();  DESIGN salesLedgerReport { OBJECTS {  TOOLBAR {    MOVE PROPERTY (printXlsx()) { }     }   } } <\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430 \u0432 \u043d\u0438\u0445 \u043f\u043e\u043b\u044f, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0443\u0440\u043e\u0432\u043d\u044f &#8212; \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e. \u0415\u0441\u043b\u0438 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0443\u0440\u043e\u0432\u043d\u0435 null \u0442\u043e \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438 \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f. \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c (\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438), \u043b\u0438\u0431\u043e \u043d\u0435\u0442.<\/p>\n<p>\u0412\u044b\u0448\u0435 \u043f\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0443\u0440\u043e\u0432\u043d\u044f\u0445 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u0442\u0430\u0431\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c &#8212; \u044d\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0440\u043e\u0432\u043d\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043c\u0435\u0449\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0441\u0430\u043c\u0430 <br \/>(\u0441\u043c.: cellXSSF.getCellStyle().setIndention)<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u0433\u043e\u0434\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/jj\/p5\/j4\/jjp5j4dkthfh3z8vseavynjcwa0.png\" width=\"905\" height=\"798\" data-src=\"https:\/\/habrastorage.org\/webt\/jj\/p5\/j4\/jjp5j4dkthfh3z8vseavynjcwa0.png\"\/><\/figure>\n<h3>6. \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043c\u0435\u043b\u043e\u0447\u044c &#8212; \u0430 \u043f\u0440\u0438\u044f\u0442\u043d\u043e.<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u043e\u0442\u0447\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0438\u043c\u044f Anchor<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/in\/93\/fg\/in93fgztmo8coyy0m9fdlzqqdtc.png\" width=\"885\" height=\"334\" data-src=\"https:\/\/habrastorage.org\/webt\/in\/93\/fg\/in93fgztmo8coyy0m9fdlzqqdtc.png\"\/><\/figure>\n<p>\u0442\u043e \u043f\u043e\u043b\u0435 \u043f\u0440\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435 \u0432 xlsx \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u043c <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wt\/45\/nq\/wt45nqyqgyexkva88ocr5uelrdw.png\" width=\"374\" height=\"368\" data-src=\"https:\/\/habrastorage.org\/webt\/wt\/45\/nq\/wt45nqyqgyexkva88ocr5uelrdw.png\"\/><\/figure>\n<p>\u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d \u043e\u0442\u0447\u0435\u0442\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044f \u0441 \u0444\u043e\u0440\u043c\u0443\u043b\u0430\u043c\u0438 \u044d\u043a\u0441\u0435\u043b\u044c \u0432 \u0432\u0438\u0434\u0435 \u0441\u0432\u043e\u0434\u043e\u043a \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0443\u043b<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/92\/i2\/zf\/92i2zfshoy1krbdahyhtpntjvky.png\" width=\"1110\" height=\"537\" data-src=\"https:\/\/habrastorage.org\/webt\/92\/i2\/zf\/92i2zfshoy1krbdahyhtpntjvky.png\"\/><\/figure>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/vu\/hd\/1-\/vuhd1-lwz3z2a8qmwocrrnbo5ra.png\" width=\"742\" height=\"703\" data-src=\"https:\/\/habrastorage.org\/webt\/vu\/hd\/1-\/vuhd1-lwz3z2a8qmwocrrnbo5ra.png\"\/><\/figure>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043e\u0442\u0447\u0435\u0442\u0443<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ze\/14\/ha\/ze14hanznthl8kae725teu1gi9m.png\" width=\"793\" height=\"172\" data-src=\"https:\/\/habrastorage.org\/webt\/ze\/14\/ha\/ze14hanznthl8kae725teu1gi9m.png\"\/><\/figure>\n<p>\u0418\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043a\u0430\u043a \u0444\u043e\u0440\u043c\u0443\u043b\u0430. (\u0412 Calc \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u044c Ctrl-F9)<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ee\/lq\/f9\/eelqf9ekfkbjnr01gsle2r-cbjw.png\" width=\"452\" height=\"252\" data-src=\"https:\/\/habrastorage.org\/webt\/ee\/lq\/f9\/eelqf9ekfkbjnr01gsle2r-cbjw.png\"\/><\/figure>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0434\u043a\u0438 \u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u044b \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0437\u0436\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0430\u0432\u043a\u0443 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u0430 \u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043e\u0442\u0447\u0435\u0442), \u043d\u043e \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u043d\u0430 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0438.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/588268\/\"> https:\/\/habr.com\/ru\/articles\/588268\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e Java-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/community.jaspersoft.com\/project\/jasperreports-library\" rel=\"noopener noreferrer nofollow\">JasperReports<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"https:\/\/habr.com\/ru\/company\/tinkoff\/blog\/461719\/\" rel=\"noopener noreferrer nofollow\">\u041e\u043f\u0435\u043d\u0441\u043e\u0440\u0441-\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438<\/a> \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0431 \u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f PDF \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u043b\u043e\u043c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0432 \u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435\u0440\u0435\u0434\u043a\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0432 \u0442\u0432\u0435\u0440\u0434\u043e\u0439 \u043a\u043e\u043f\u0438\u0438, \u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 JasperReports \u0435\u0441\u0442\u044c \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 Crosstab. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0434\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u043e\u0434\u043d\u044b \u043a\u0430\u043a \u043e\u0442\u0447\u0435\u0442\u044b \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b &#8212; \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0441\u0440\u0435\u0434\u0435 <a href=\"https:\/\/community.jaspersoft.com\/project\/jaspersoft-studio\" rel=\"noopener noreferrer nofollow\">TIBCO Jaspersoft\u00ae Studio<\/a><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u044b\u0445 \u0444\u043e\u0440\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 JasperReports \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0430\u0431\u043e\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 DataSet. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.  \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 open-source \u0440\u0435\u0448\u0435\u043d\u0438\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/lsfusion\/blog\/541526\/\" rel=\"noopener noreferrer nofollow\">MyCompany<\/a> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430 open-source \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/lsfusion\" rel=\"noopener noreferrer nofollow\">lsFusion<\/a>.  <\/p>\n<p>\u0412\u0441\u0435 \u043d\u0438\u0436\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u043a jasper report \u0432\u043e\u043e\u0431\u0449\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 LsFusion. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0430\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f java \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u0430\u043a \u0432\u043d\u0435\u0448\u043d\u044f\u044f &#8212; \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430.<\/p>\n<h3>1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 LsFusion\/MyCompany<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u0430 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 SalesLedgerReport. \u0414\u043e\u043f\u0438\u0448\u0435\u043c \u0432 \u0444\u0430\u0439\u043b  SalesLedgerReport.lsf \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<pre><code> \/\/ ++ \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0435\u0447\u0430\u0442\u0438 printXlsx '\u041f\u0435\u0447\u0430\u0442\u044c \u0445slx' (){  PRINT salesLedgerReport    XLSX; } print '\u041f\u0435\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0432\u044c\u044e' (){  PRINT salesLedgerReport    PREVIEW; }  EXTEND FORM salesLedgerReport \/\/ \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0435\u0447\u0430\u0442\u0438 PROPERTIES   printXlsx(), print(); <\/code><\/pre>\n<h3>2. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 jrxml<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u043e\u0442\u0447\u0435\u0442\u0435 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u043c \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f 2 \u043a\u043d\u043e\u043f\u043a\u0438 <\/p>\n<figure class=\"\"><\/figure>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u044b jrxml \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u0440\u0435\u0432\u044c\u044e.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <code>..\/src\/main\/lsfusion<\/code> \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0444\u0430\u0439\u043b<\/p>\n<pre><code>Sales_salesLedgerReport.jrxml <\/code><\/pre>\n<h3>3. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 jrxml<\/h3>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u043e\u043c <code>Sales_salesLedgerReport.jrxml<\/code> \u0432 <a href=\"https:\/\/community.jaspersoft.com\/project\/jaspersoft-studio\" rel=\"noopener noreferrer nofollow\">TIBCO Jaspersoft\u00ae Studio<\/a><\/p>\n<figure class=\"\"><\/figure>\n<p>\u0412 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0443\u0436\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f Detail \u043e\u0431\u043b\u0430\u0441\u0442\u044c. \u0414\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 <code>Detail 1<\/code> \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c.<\/p>\n<h3>4. \u0412\u0441\u0442\u0430\u0432\u043a\u0430 Crosstab<\/h3>\n<ol>\n<li>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c <code>Crosstab<\/code> \u0438\u0437 \u043f\u0430\u043b\u0438\u0442\u0440\u044b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Summary<\/p>\n<\/li>\n<\/ol>\n<p>\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u0430<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u043b\u043e\u043d\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0433\u043e\u0434, \u043c\u0435\u0441\u044f\u0446 (\u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u043c\u0435\u0441\u044f\u0446\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u043f\u043e\u0437\u0436\u0435)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u0440\u0443\u043f\u043f \u0432\u043e\u0437\u044c\u043c\u0435\u043c 4 \u0432\u0435\u0440\u0445\u043d\u0438\u0445 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430. \u0421\u0440\u0430\u0437\u0443 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u0438\u0442\u043e\u0433\u043e\u043c \u0432\u043d\u0438\u0437\u0443, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0432\u0435\u0440\u0445\u0443. \u0421\u0442\u0440\u043e\u0447\u043a\u0438 \u0438\u0442\u043e\u0433\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0440\u043e\u043b\u044c \u0441\u0442\u0440\u043e\u043a \u0433\u0440\u0443\u043f\u043f. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041c\u0435\u0440\u0430\u043c\u0438 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0441\u0443\u043c\u043c\u0443 \u043f\u0440\u043e\u0434\u0430\u0436. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041e\u043d\u043e \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0440\u043a\u043e\u0435, \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u0442 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f.<\/p>\n<figure class=\"\"><\/figure>\n<ol start=\"2\">\n<li>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044b <code>Detail1<\/code> \u0438 \u0448\u0430\u043f\u043a\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443c\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>\u041f\u0435\u0447\u0430\u0442\u044c \u0445slx<\/code> \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<p> \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>\u041f\u0435\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0432\u044c\u044e<\/code> \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430. \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u0430 \u043f\u043e\u0434 \u0432\u044b\u0432\u043e\u0434 \u0432 xlsx \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0432 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<h3>4. \u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a\u043e\u043c \u0434\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430.<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430 \u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440 (\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u0432\u044b\u0448\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443)<\/p>\n<\/li>\n<\/ol>\n<figure class=\"\"><\/figure>\n<figure class=\"full-width\"><\/figure>\n<ol start=\"2\">\n<li>\n<p>\u0412\u0435\u0440\u043d\u0435\u043c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u043c\u0435\u0440\u044b \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u0438\u043c\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<ol start=\"3\">\n<li>\n<p>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u043c \u043f\u043e\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e\u0448\u0438\u0440\u0435. \u041f\u0440\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u044f\u0447\u0435\u0439\u043a\u0438 \u043f\u0440\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0436\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043e\u0442\u0447\u0435\u0442\u0430 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435 \u043f\u043e\u043b\u0435\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<ol start=\"4\">\n<li>\n<p>\u041e\u0444\u043e\u0440\u043c\u0438\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 <\/p>\n<figure class=\"full-width\"><\/figure>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c &#8212; \u043f\u0435\u0440\u0435\u0431\u0440\u043e\u0441\u0438\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 (\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 static \u0432 text), \u0430 \u0441\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441 0 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 <\/p>\n<figure class=\"full-width\"><\/figure>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0438\u043b\u0438, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043e\u0442\u0447\u0435\u0442 \u0441\u0432\u043e\u0438. \u041d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u0438 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438 Crosstab \u0443\u0434\u043e\u0431\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u0442\u043e\u0433\u0438 \u043f\u043e \u0433\u0440\u0443\u043f\u043f\u0430\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0438 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u0442\u043e\u0433\u043e\u0432 \u043f\u043e \u0433\u0440\u0443\u043f\u043f\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043d\u0438\u0436\u0435\u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u0443\u0440\u043e\u0432\u043d\u044f\u0445. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u0448\u0438\u0440\u043e\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0434\u043e\u043b\u0435\u0439 \u0434\u043e \u0444\u043e\u0440\u043c\u0443\u043b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>5. \u041f\u0440\u043e\u0447\u0438\u0435 \u043c\u0435\u043b\u043e\u0447\u0438<\/h3>\n<p>\u0412 \u0433\u043e\u0442\u043e\u0432\u043e\u043c \u043e\u0442\u0447\u0435\u0442\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u043a\u0443\u0441\u043d\u043e\u0441\u0442\u0438<\/p>\n<ol>\n<li>\n<p>\u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0438\u0436\u0435\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u0433\u0440\u0443\u043f\u043f<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u0434\u0435\u0440\u0435\u0432\u043e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u0430 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0443\u0441\u043a \u043f\u0443\u0441\u0442\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\/\u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u0441\u0435 \u044d\u0442\u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 (\u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439) \u0432 jasper report  \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u0435\u043b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u043e\u0442\u0447\u0435\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443 (\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435) \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043c\u0435\u0449\u0430\u044e \u043d\u043e\u043c\u0435\u0440 \u0443\u0440\u043e\u0432\u043d\u044f. \u0418 \u043f\u043e\u0441\u043b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f xlsx \u0444\u0430\u0439\u043b\u0430 \u0434\u0435\u043b\u0430\u044e \u0435\u0433\u043e \u0434\u043e\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0418\u0442\u0430\u043a<\/p>\n<ol>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043f\u0430\u043f\u043a\u0443 <code>...\/src\/main\/java<\/code>  \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>XlsCreateRowOutline.java<\/code> \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>XlsCreateRowOutline.java<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">        import lsfusion.base.file.RawFileData;         import lsfusion.server.data.sql.exception.SQLHandledException;         import lsfusion.server.language.ScriptingErrorLog;         import lsfusion.server.language.ScriptingLogicsModule;         import lsfusion.server.logics.action.controller.context.ExecutionContext;         import lsfusion.server.logics.classes.ValueClass;         import lsfusion.server.logics.property.classes.ClassPropertyInterface;         import lsfusion.server.physics.dev.integration.internal.to.InternalAction;         import org.apache.commons.lang.StringUtils;         import org.apache.poi.ss.usermodel.Cell;         import org.apache.poi.ss.usermodel.CellType;         import org.apache.poi.ss.usermodel.Name;         import org.apache.poi.xssf.usermodel.*;          import java.io.ByteArrayOutputStream;         import java.io.IOException;         import java.io.OutputStream;         import java.sql.SQLException;         import java.util.ArrayList;         import java.util.HashMap;         import java.util.Iterator;         import java.util.Map;          import static java.lang.Math.abs;         import static java.lang.Math.max;          \/\/https:\/\/poi.apache.org\/components\/spreadsheet\/quick-guide.htm          public class XlsCreateRowOutlineV2  extends InternalAction {     public XlsCreateRowOutlineV2(ScriptingLogicsModule LM, ValueClass... classes) {         super(LM, classes);     }     XSSFSheet sheet;      @Override     protected void executeInternal(ExecutionContext&lt;ClassPropertyInterface> context) throws SQLException, SQLHandledException {         \/\/ \u043a\u043e\u0441\u0442\u044b\u043b\u044c - \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0435 \u0434\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u044d\u043a\u0441\u0435\u043b\u044c         \/\/ \u0432\u0435\u0441\u0438\u044f 2 - \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u0442\u0430\u0431\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \u0434\u043b\u044f \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0439         \/\/ 1. \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u043e\u0442\u0447\u0435\u0442\u0430 - \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b\/\u043f\u043e\u0434\u0433\u0440\u0443\u043f\u043f\u044b         \/\/ 2. \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430         \/\/ 3. \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e \u0432\u0441\u0435\u043c \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u043c - \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c         \/\/ 4. \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043e\u0442\u0447\u0435\u0442\u0430 - \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f crosstab         RawFileData f =  (RawFileData)getParam(0, context);  \/\/ \u0444\u0430\u0439\u043b \u044d\u043a\u0441\u0435\u043b\u044f         Integer negativeRed = (Integer)getParam(1, context); \/\/1 - \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c         Integer fixColumn = (Integer)getParam(2, context);   \/\/ \u0435\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 0 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0446\u044b         Integer fixRow = (Integer)getParam(3, context);      \/\/ \u0435\u0441\u043b\u0438 >0 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438         Integer columnTreeIndex = (Integer)getParam(4, context); \/\/ \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e - \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u0438                                                                    \/\/ \u0435\u0441\u043b\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c - \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u0430                                                                    \/\/ \u0441\u0430\u043c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a abs \u043e\u0442 \u0447\u0438\u0441\u043b\u0430 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435         Integer allLevelsRequired = (Integer)getParam(5, context); \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u043e\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443 \u0443\u0440\u043e\u0432\u043d\u044f, \u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c                                                                       \/\/ 0 - \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 1 \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439                                                                       \/\/ 1 - \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f           Integer columnForTab = (Integer)getParam(6, context); \/\/  \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0441\u0442\u0438\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043e\u0444\u043e\u0440\u043c\u043b\u044f\u0442\u044c \u0441\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c          Map&lt;Integer, Map&lt;Integer,Integer>> ol = new HashMap&lt;>();         for (int i =0;i&lt;20;i++)  ol.put(i,new HashMap&lt;>());         int currentLevel=0;         int rowLevel=0;         int rowIndex=0;         Cell cell;         try {              XSSFWorkbook workbook = new XSSFWorkbook(f.getInputStream() );             sheet = workbook.getSheetAt(0);              \/\/ \u0443\u0434\u0430\u043b\u0438\u043c \u0434\u0443\u0431\u043b\u0438 \u0438\u043c\u0435\u043djd \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u044f\u043c\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 - \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435           java.util.List&lt;? extends Name> names =  workbook.getAllNames();           ArrayList&lt;String> namesInlist = new ArrayList&lt;>();           ArrayList&lt;Name> forDelete = new ArrayList&lt;>();           for (int i = 0; i &lt; names.size(); i++) {                 Name name = names.get(i);                 if (namesInlist.contains(name.getNameName())) {                    forDelete.add(name); \/\/                 }                 else {                    namesInlist.add(name.getNameName());                 }           }           for (int i = forDelete.size()-1; i >= 0; i--) workbook.removeName(forDelete.get(i));       for (rowIndex = 0; sheet.getLastRowNum() > rowIndex; rowIndex++) {         XSSFRow removingRow = sheet.getRow(rowIndex);          if (removingRow != null) {             if (                     removingRow.getCell(columnTreeIndex).getCellType() == CellType.NUMERIC                             &amp;&amp; abs(removingRow.getCell(columnTreeIndex).getNumericCellValue()) >= 0                 \/\/  &amp;&amp;  abs(removingRow.getCell(columnTreeIndex).getNumericCellValue())&lt;             ) {                 rowLevel = abs((int) removingRow.getCell(columnTreeIndex).getNumericCellValue());                 if (currentLevel &lt; rowLevel) {                     \/\/ \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0432\u044b\u0448\u0435\u043d                     while (currentLevel &lt;<\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-406882","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/406882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=406882"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/406882\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}